haskell-generic-builder: simplify outputs attribute logic
The arguments cannot contain outputs, so the if-then-else here is pointless.
commit25ee2516c2f8368eb348630ab3004bb72e2c73f0
authorPeter Simons <simons@cryp.to>
dateFri 16 Feb 2018, 16:53 (9 years ago)
parent2b2a678
pkgs/development/haskell-modules/generic-builder.nix+1−1
@@ -191,7 +191,7 @@ assert allPkgconfigDepends != [] -> pkgconfig != null;
191191stdenv.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;