mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
bibutils: support static builds
This commit is contained in:
parent
de8dbb21fb
commit
8c5fd78d0b
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bibutils";
|
||||
|
@ -9,7 +13,11 @@ stdenv.mkDerivation rec {
|
|||
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;
|
||||
|
||||
doCheck = true;
|
||||
|
|
Loading…
Reference in a new issue