about summary refs log tree commit diff
path: root/pkgs/games/humblebundle
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-08-16 00:48:08 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-08-16 00:49:22 +0200
commitae0c05633c537d6bb3d33b828cad9c07cd943e02 (patch)
treec87fdc6dc819e28500c24b2f779b879dbc34de33 /pkgs/games/humblebundle
parent7db77c7675737be8d48e6d1d728df0c1247f8b13 (diff)
fetch-humble-bundle: Allow single-output curl
This should make sure it can be evaluated on NixOS versions where the
closure-size branch has not yet been merged.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/humblebundle')
-rw-r--r--pkgs/games/humblebundle/fetch-humble-bundle/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
index 3b8a722e..50c1f3a3 100644
--- a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
+++ b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
@@ -81,7 +81,8 @@ in stdenv.mkDerivation {
   buildCommand = ''
     url="$(python "${getDownloadURL}")"
     header "downloading $name from $url"
-    ${curl.bin}/bin/curl --cacert "${cafile}" --fail --output "$out" "$url"
+    "${curl.bin or curl}/bin/curl" --cacert "${cafile}" --fail \
+      --output "$out" "$url"
     stopNest
   '';
 }