Skip to content

Commit

Permalink
haskell-generic-builder: simplify outputs attribute logic
Browse files Browse the repository at this point in the history
The arguments cannot contain outputs, so the if-then-else here is pointless.
  • Loading branch information
peti committed Feb 16, 2018
1 parent 2b2a678 commit 25ee251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -191,7 +191,7 @@ assert allPkgconfigDepends != [] -> pkgconfig != null;
stdenv.mkDerivation ({
name = "${pname}-${version}";

outputs = if (args ? outputs) then args.outputs else ([ "out" ] ++ (optional enableSeparateDataOutput "data") ++ (optional enableSeparateDocOutput "doc"));
outputs = [ "out" ] ++ (optional enableSeparateDataOutput "data") ++ (optional enableSeparateDocOutput "doc");
setOutputFlags = false;

pos = builtins.unsafeGetAttrPos "pname" args;
Expand Down

0 comments on commit 25ee251

Please sign in to comment.