summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2018-02-16 16:53:07 +0100
committerPeter Simons <simons@cryp.to>2018-02-16 16:54:16 +0100
commit25ee2516c2f8368eb348630ab3004bb72e2c73f0 (patch)
tree34fdff73036085cf6c8153f7d562e277e2ca10c0 /pkgs
parent2b2a678a6f718d71031ce662762c9f5963d1cdcc (diff)
downloadnixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar.gz
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar.bz2
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar.lz
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar.xz
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.tar.zst
nixlib-25ee2516c2f8368eb348630ab3004bb72e2c73f0.zip
haskell-generic-builder: simplify outputs attribute logic
The arguments cannot contain outputs, so the if-then-else here is pointless.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index 14a8a628b58c..71b2d1288a01 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -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;