Merge pull request #123581 from veprbl/pr/bibutils_enable_darwin
bibutils: enable darwin
This commit is contained in:
commit
d61cf2be36
@ -1,4 +1,8 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bibutils";
|
pname = "bibutils";
|
||||||
@ -9,11 +13,23 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
|
sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [ "--dynamic" "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ];
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace lib/Makefile.dynamic \
|
||||||
|
--replace '-Wl,-soname,$(SONAME)' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
(if static then "--static" else "--dynamic")
|
||||||
|
"--install-dir" "$(out)/bin"
|
||||||
|
"--install-lib" "$(out)/lib"
|
||||||
|
];
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||||
|
export DYLD_LIBRARY_PATH=`pwd`/lib
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Bibliography format interconversion";
|
description = "Bibliography format interconversion";
|
||||||
@ -21,6 +37,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
|
homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.garrison ];
|
maintainers = [ maintainers.garrison ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user