diff options
author | Domen Kožar <domen@dev.si> | 2018-07-16 09:55:06 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2018-07-16 09:56:03 +0100 |
commit | f3341e233051293dcc944020c43d83f84508a4a3 (patch) | |
tree | 22d5925df5f7d1888354eb6d67f642de70354f98 /pkgs/tools/compression/xz | |
parent | 705b807c7c4fb7495c1729e89c389728587f02b0 (diff) |
xz: enable optional static compilation
Diffstat (limited to 'pkgs/tools/compression/xz')
-rw-r--r-- | pkgs/tools/compression/xz/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 37c0c6d1c7e8..0ff349e96e80 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -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 = '' |