fetchzip and friends: Set "name" to "source" by default

This makes them produce the same store paths as builtins.fetchgit,
builtins.fetchTarball etc. See
https://github.com/NixOS/nix/commit/65b5f177b5fbb1b0778ede047a13a3cee9c59cfe.
This commit is contained in:
Eelco Dolstra
2017-10-30 17:17:07 +01:00
parent 6d41ae55dd
commit c3255fe8ec
3 changed files with 7 additions and 27 deletions
+2 -1
View File
@@ -11,10 +11,11 @@
stripRoot ? true
, url
, extraPostFetch ? ""
, name ? "source"
, ... } @ args:
lib.overrideDerivation (fetchurl ({
name = args.name or (baseNameOf url);
inherit name;
recursiveHash = true;