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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user