bibutils: support static builds
This commit is contained in:
parent
de8dbb21fb
commit
8c5fd78d0b
@ -1,4 +1,8 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bibutils";
|
pname = "bibutils";
|
||||||
@ -9,7 +13,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
|
sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [ "--dynamic" "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ];
|
configureFlags = [
|
||||||
|
(if static then "--static" else "--dynamic")
|
||||||
|
"--install-dir" "$(out)/bin"
|
||||||
|
"--install-lib" "$(out)/lib"
|
||||||
|
];
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user