depot/pkgs/by-name/bo/bobcat/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

72 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, icmake
, yodl
, libmilter
, libX11
, openssl
, readline
, util-linux
}:
stdenv.mkDerivation rec {
pname = "bobcat";
version = "5.11.01";
src = fetchFromGitLab {
domain = "gitlab.com";
owner = "fbb-git";
repo = "bobcat";
rev = version;
hash = "sha256-JLJKaJmztputIon9JkKzpm3Ch60iwm4Imh9p42crYzA=";
};
sourceRoot = "${src.name}/bobcat";
postPatch = ''
substituteInPlace INSTALL.im \
--replace "/usr" "$out"
sed -i "6i #include <cstdint>" logbuf/logbuf
patchShebangs .
'';
strictDeps = true;
nativeBuildInputs = [
icmake
yodl
];
buildInputs = [
libmilter
libX11
openssl
readline
util-linux
];
buildPhase = ''
runHook preBuild
./build libraries all
./build man
runHook postBuild
'';
installPhase = ''
runHook preBuild
./build install x
runHook postBuild
'';
meta = with lib; {
description = "Brokken's Own Base Classes And Templates";
homepage = "https://fbb-git.gitlab.io/bobcat/";
license = licenses.gpl3Only;
platforms = platforms.linux;
};
}