git.iko.soy/typeable/nixpkgs
on master help sign in
bibutils: support static builds
commit8c5fd78d0b929c2283f3db1ee2c9914b46462840 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateTue 18 May 2021, 16:14 (6 years ago) parentde8dbb2
1 file changed+10−2
pkgs/tools/misc/bibutils/default.nix+10−2
pkgs/tools/misc/bibutils/default.nix+10−2
@@ -1,4 +1,8 @@
1−{ lib, stdenv, fetchurl }:
1+{ lib
2+, stdenv
3+, fetchurl
4+, static ? stdenv.hostPlatform.isStatic
5+}:
26
37stdenv.mkDerivation rec {
48 pname = "bibutils";
@@ -9,7 +13,11 @@ stdenv.mkDerivation rec {
913 sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
1014 };
1115
12− configureFlags = [ "--dynamic" "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ];
16+ configureFlags = [
17+ (if static then "--static" else "--dynamic")
18+ "--install-dir" "$(out)/bin"
19+ "--install-lib" "$(out)/lib"
20+ ];
1321 dontAddPrefix = true;
1422
1523 doCheck = true;