summary refs log tree commit diff
path: root/pkgs/tools/misc/bibutils
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-05-18 16:15:29 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-05-18 16:15:29 -0400
commitb75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a (patch)
treea9f7992b1af70f8b78218c1b8ffde88ecd04bf70 /pkgs/tools/misc/bibutils
parent8c5fd78d0b929c2283f3db1ee2c9914b46462840 (diff)
downloadnixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar.gz
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar.bz2
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar.lz
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar.xz
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.tar.zst
nixpkgs-b75ce20dfa4aac349c9ff7d8e1f7a4d09aeab96a.zip
bibutils: enable on darwin
Diffstat (limited to 'pkgs/tools/misc/bibutils')
-rw-r--r--pkgs/tools/misc/bibutils/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/misc/bibutils/default.nix b/pkgs/tools/misc/bibutils/default.nix
index 1415faadef8..03b35811bc5 100644
--- a/pkgs/tools/misc/bibutils/default.nix
+++ b/pkgs/tools/misc/bibutils/default.nix
@@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
     sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
   };
 
+  preConfigure = lib.optionalString stdenv.isDarwin ''
+    substituteInPlace lib/Makefile.dynamic \
+      --replace '-Wl,-soname,$(SONAME)' ""
+  '';
+
   configureFlags = [
     (if static then "--static" else "--dynamic")
     "--install-dir" "$(out)/bin"
@@ -22,6 +27,9 @@ stdenv.mkDerivation rec {
 
   doCheck = true;
   checkTarget = "test";
+  preCheck = lib.optionalString stdenv.isDarwin ''
+    export DYLD_LIBRARY_PATH=`pwd`/lib
+  '';
 
   meta = with lib; {
     description = "Bibliography format interconversion";
@@ -29,6 +37,6 @@ stdenv.mkDerivation rec {
     homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
     license = licenses.gpl2;
     maintainers = [ maintainers.garrison ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }