fetchzip, fetchgit: cleanup handling of optional features and whitespace

No intended functional difference, just trying to polish to make this easier to
extend and more aligned with other nix conventions.
This commit is contained in:
Benjamin Hipple
2020-02-08 21:51:46 -05:00
parent 8396961c9c
commit caff183402
3 changed files with 41 additions and 43 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{stdenvNoCC, git, cacert}: let
{ stdenvNoCC, git, cacert }: let
urlToName = url: rev: let
inherit (stdenvNoCC.lib) removeSuffix splitString last;
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));