Merge pull request #123581 from veprbl/pr/bibutils_enable_darwin

bibutils: enable darwin

authored by

Dmitry Kalinkin and committed by
GitHub
d61cf2be 145658a4

+19 -3
+19 -3
pkgs/tools/misc/bibutils/default.nix
··· 1 - { lib, stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 pname = "bibutils"; ··· 9 sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6"; 10 }; 11 12 - configureFlags = [ "--dynamic" "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ]; 13 dontAddPrefix = true; 14 15 doCheck = true; 16 checkTarget = "test"; 17 18 meta = with lib; { 19 description = "Bibliography format interconversion"; ··· 21 homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/"; 22 license = licenses.gpl2; 23 maintainers = [ maintainers.garrison ]; 24 - platforms = platforms.linux; 25 }; 26 }
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , static ? stdenv.hostPlatform.isStatic 5 + }: 6 7 stdenv.mkDerivation rec { 8 pname = "bibutils"; ··· 13 sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6"; 14 }; 15 16 + preConfigure = lib.optionalString stdenv.isDarwin '' 17 + substituteInPlace lib/Makefile.dynamic \ 18 + --replace '-Wl,-soname,$(SONAME)' "" 19 + ''; 20 + 21 + configureFlags = [ 22 + (if static then "--static" else "--dynamic") 23 + "--install-dir" "$(out)/bin" 24 + "--install-lib" "$(out)/lib" 25 + ]; 26 dontAddPrefix = true; 27 28 doCheck = true; 29 checkTarget = "test"; 30 + preCheck = lib.optionalString stdenv.isDarwin '' 31 + export DYLD_LIBRARY_PATH=`pwd`/lib 32 + ''; 33 34 meta = with lib; { 35 description = "Bibliography format interconversion"; ··· 37 homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/"; 38 license = licenses.gpl2; 39 maintainers = [ maintainers.garrison ]; 40 + platforms = platforms.unix; 41 }; 42 }