1{ stdenv, fetchFromGitHub, icmake
2, libmilter, libX11, openssl, readline
3, utillinux, yodl }:
4
5stdenv.mkDerivation rec {
6 name = "bobcat-${version}";
7 version = "4.07.00";
8
9 src = fetchFromGitHub {
10 sha256 = "0ja6rgdw4ng10acp2c0cv9k72i5sgng03i3xi2yshlm2811lgxcs";
11 rev = version;
12 repo = "bobcat";
13 owner = "fbb-git";
14 };
15
16 buildInputs = [ libmilter libX11 openssl readline utillinux ];
17 nativeBuildInputs = [ icmake yodl ];
18
19 setSourceRoot = ''
20 sourceRoot=$(echo */bobcat)
21 '';
22
23 postPatch = ''
24 substituteInPlace INSTALL.im --replace /usr $out
25 patchShebangs .
26 '';
27
28 buildPhase = ''
29 ./build libraries all
30 ./build man
31 '';
32
33 installPhase = ''
34 ./build install x
35 '';
36
37 meta = with stdenv.lib; {
38 description = "Brokken's Own Base Classes And Templates";
39 homepage = https://fbb-git.github.io/bobcat/;
40 license = licenses.gpl3;
41 platforms = platforms.linux;
42 };
43}