3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/bobcat/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

44 lines
916 B
Nix

{ stdenv, fetchFromGitHub, icmake
, libmilter, libX11, openssl, readline
, utillinux, yodl }:
stdenv.mkDerivation rec {
pname = "bobcat";
version = "4.08.03";
src = fetchFromGitHub {
sha256 = "163mdl8hxids7123bjxmqhcaqyc1dv7hv8k33s713ac6lzawarq2";
rev = version;
repo = "bobcat";
owner = "fbb-git";
};
buildInputs = [ libmilter libX11 openssl readline utillinux ];
nativeBuildInputs = [ icmake yodl ];
setSourceRoot = ''
sourceRoot=$(echo */bobcat)
'';
postPatch = ''
substituteInPlace INSTALL.im --replace /usr $out
patchShebangs .
'';
buildPhase = ''
./build libraries all
./build man
'';
installPhase = ''
./build install x
'';
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;
};
}