Skip to content

Commit 25ee251

Browse files
committedFeb 16, 2018
haskell-generic-builder: simplify outputs attribute logic
The arguments cannot contain outputs, so the if-then-else here is pointless.
1 parent 2b2a678 commit 25ee251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkgs/development/haskell-modules/generic-builder.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ assert allPkgconfigDepends != [] -> pkgconfig != null;
191191
stdenv.mkDerivation ({
192192
name = "${pname}-${version}";
193193

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

197197
pos = builtins.unsafeGetAttrPos "pname" args;

0 commit comments

Comments
 (0)
Please sign in to comment.