Skip to content

Commit

Permalink
xz: fix shared/static logic
Browse files Browse the repository at this point in the history
It doesn’t make sense to assume enableStatic implies --disable-shared.
  • Loading branch information
matthewbauer committed Aug 7, 2018
1 parent 564001a commit 8b74bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/compression/xz/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, enableStatic ? false }:
{ stdenv, fetchurl, enableShared ? true }:

stdenv.mkDerivation rec {
name = "xz-5.2.4";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {

outputs = [ "bin" "dev" "out" "man" "doc" ];

configureFlags = stdenv.lib.optional enableStatic "--disable-shared";
configureFlags = stdenv.lib.optional (!enableShared) "--disable-shared";

doCheck = true;

Expand Down

0 comments on commit 8b74bb0

Please sign in to comment.