mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
xz: enable optional static compilation
This commit is contained in:
parent
705b807c7c
commit
f3341e2330
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, enableStatic ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xz-5.2.4";
|
||||
|
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
||||
|
||||
configureFlags = stdenv.lib.optional enableStatic "--disable-shared";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
|
|
Loading…
Reference in a new issue