2015-08-31 18:46:39 -07:00
|
|
|
{ stdenv, fetchFromGitHub, icmake, libmilter, libX11, openssl, readline
|
2015-05-05 04:08:55 -07:00
|
|
|
, utillinux, yodl }:
|
|
|
|
|
2016-01-24 11:31:44 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2015-05-05 04:08:55 -07:00
|
|
|
name = "bobcat-${version}";
|
2016-04-27 09:20:13 -07:00
|
|
|
version = "4.02.00";
|
2015-05-05 04:08:55 -07:00
|
|
|
|
2015-08-31 18:46:39 -07:00
|
|
|
src = fetchFromGitHub {
|
2016-04-27 09:20:13 -07:00
|
|
|
sha256 = "1hl5b2g4cmxcafkcpr4vs0c705cy254g0h410zi5wxnygjam8adn";
|
2015-08-31 18:46:39 -07:00
|
|
|
rev = version;
|
|
|
|
repo = "bobcat";
|
|
|
|
owner = "fbb-git";
|
2015-05-05 04:08:55 -07:00
|
|
|
};
|
|
|
|
|
2015-07-22 07:25:00 -07:00
|
|
|
buildInputs = [ libmilter libX11 openssl readline utillinux ];
|
2015-06-17 10:36:06 -07:00
|
|
|
nativeBuildInputs = [ icmake yodl ];
|
2015-05-05 04:08:55 -07:00
|
|
|
|
2015-08-31 18:46:39 -07:00
|
|
|
sourceRoot = "bobcat-${version}-src/bobcat";
|
|
|
|
|
2015-05-05 04:08:55 -07:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace INSTALL.im --replace /usr $out
|
2016-03-17 19:09:45 -07:00
|
|
|
patchShebangs .
|
2015-05-05 04:08:55 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build libraries all
|
|
|
|
./build man
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-03-18 08:35:00 -07:00
|
|
|
./build install x
|
2015-05-05 04:08:55 -07:00
|
|
|
'';
|
2016-01-24 11:31:44 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Brokken's Own Base Classes And Templates";
|
|
|
|
homepage = https://fbb-git.github.io/bobcat/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
2015-05-05 04:08:55 -07:00
|
|
|
}
|