2017-03-16 16:41:33 -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 {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "bobcat";
|
2018-05-11 09:13:58 -07:00
|
|
|
version = "4.08.03";
|
2015-05-05 04:08:55 -07:00
|
|
|
|
2015-08-31 18:46:39 -07:00
|
|
|
src = fetchFromGitHub {
|
2018-05-11 09:13:58 -07:00
|
|
|
sha256 = "163mdl8hxids7123bjxmqhcaqyc1dv7hv8k33s713ac6lzawarq2";
|
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
|
|
|
|
2017-11-02 05:54:20 -07:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */bobcat)
|
|
|
|
'';
|
2015-08-31 18:46:39 -07:00
|
|
|
|
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";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://fbb-git.github.io/bobcat/";
|
2016-01-24 11:31:44 -08:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-05-05 04:08:55 -07:00
|
|
|
}
|