mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
bibutils: enable on darwin
This commit is contained in:
parent
8c5fd78d0b
commit
b75ce20dfa
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue