bobcat: refactor, migrate to by-name
This commit is contained in:
parent
98ad610d60
commit
e059e54dd7
72
pkgs/by-name/bo/bobcat/package.nix
Normal file
72
pkgs/by-name/bo/bobcat/package.nix
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{ 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;
|
||||||
|
};
|
||||||
|
}
|
@ -1,44 +0,0 @@
|
|||||||
{ lib, stdenv, fetchFromGitLab, icmake
|
|
||||||
, libmilter, libX11, openssl, readline
|
|
||||||
, util-linux, yodl }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "bobcat";
|
|
||||||
version = "5.11.01";
|
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
|
||||||
sha256 = "sha256-JLJKaJmztputIon9JkKzpm3Ch60iwm4Imh9p42crYzA=";
|
|
||||||
domain = "gitlab.com";
|
|
||||||
rev = version;
|
|
||||||
repo = "bobcat";
|
|
||||||
owner = "fbb-git";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ libmilter libX11 openssl readline util-linux ];
|
|
||||||
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 lib; {
|
|
||||||
description = "Brokken's Own Base Classes And Templates";
|
|
||||||
homepage = "https://fbb-git.gitlab.io/bobcat/";
|
|
||||||
license = licenses.gpl3;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -20653,8 +20653,6 @@ with pkgs;
|
|||||||
else callPackage ../os-specific/linux/bionic-prebuilt { };
|
else callPackage ../os-specific/linux/bionic-prebuilt { };
|
||||||
|
|
||||||
|
|
||||||
bobcat = pin-to-gcc12-if-gcc13 (callPackage ../development/libraries/bobcat { });
|
|
||||||
|
|
||||||
boehmgc = callPackage ../development/libraries/boehm-gc { };
|
boehmgc = callPackage ../development/libraries/boehm-gc { };
|
||||||
|
|
||||||
boolstuff = callPackage ../development/libraries/boolstuff { };
|
boolstuff = callPackage ../development/libraries/boolstuff { };
|
||||||
|
Loading…
Reference in New Issue
Block a user