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