Merge pull request #283169 from wegank/bobcat-refactor

bobcat: refactor, migrate to by-name
This commit is contained in:
Weijia Wang 2024-01-29 09:18:19 +01:00 committed by GitHub
commit 3eb010af35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 72 additions and 46 deletions

View 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;
};
}

View file

@ -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;
};
}

View file

@ -20644,8 +20644,6 @@ with pkgs;
else callPackage ../os-specific/linux/bionic-prebuilt { };
bobcat = pin-to-gcc12-if-gcc13 (callPackage ../development/libraries/bobcat { });
boehmgc = callPackage ../development/libraries/boehm-gc { };
boolstuff = callPackage ../development/libraries/boolstuff { };