xz: enable optional static compilation
This commit is contained in:
parent
705b807c7c
commit
f3341e2330
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, enableStatic ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xz-5.2.4";
|
name = "xz-5.2.4";
|
||||||
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
||||||
|
|
||||||
|
configureFlags = stdenv.lib.optional enableStatic "--disable-shared";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user