git.iko.soy/typeable/nixpkgs
on master help sign in
bibutils: enable on darwin
commitb75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateTue 18 May 2021, 16:15 (6 years ago) parent8c5fd78
1 file changed+9−1
pkgs/tools/misc/bibutils/default.nix+9−1
pkgs/tools/misc/bibutils/default.nix+9−1
@@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
1313 sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
1414 };
1515
16+ preConfigure = lib.optionalString stdenv.isDarwin ''
17+ substituteInPlace lib/Makefile.dynamic \
18+ --replace '-Wl,-soname,$(SONAME)' ""
19+ '';
20+
1621 configureFlags = [
1722 (if static then "--static" else "--dynamic")
1823 "--install-dir" "$(out)/bin"
@@ -22,6 +27,9 @@ stdenv.mkDerivation rec {
2227
2328 doCheck = true;
2429 checkTarget = "test";
30+ preCheck = lib.optionalString stdenv.isDarwin ''
31+ export DYLD_LIBRARY_PATH=`pwd`/lib
32+ '';
2533
2634 meta = with lib; {
2735 description = "Bibliography format interconversion";
@@ -29,6 +37,6 @@ stdenv.mkDerivation rec {
2937 homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
3038 license = licenses.gpl2;
3139 maintainers = [ maintainers.garrison ];
32− platforms = platforms.linux;
40+ platforms = platforms.unix;
3341 };
3442}