xz: enable optional static compilation

This commit is contained in:
Domen Kožar
2018-07-16 09:55:06 +01:00
parent 705b807c7c
commit f3341e2330

View File

@@ -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 = ''