diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2020-02-02 16:56:11 -0500 |
---|---|---|
committer | Benjamin Hipple <bhipple@protonmail.com> | 2020-02-08 21:51:46 -0500 |
commit | caff18340206c4e5c466c16a534f13505d1098ee (patch) | |
tree | 446e7d33227fef84ff21cbc9bc9580810491b9c3 /pkgs/build-support/fetchgit/default.nix | |
parent | 8396961c9cc67d0a12c0bcf475de77d9a849fd7b (diff) | |
download | nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar.gz nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar.bz2 nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar.lz nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar.xz nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.tar.zst nixpkgs-caff18340206c4e5c466c16a534f13505d1098ee.zip |
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.
Diffstat (limited to 'pkgs/build-support/fetchgit/default.nix')
-rw-r--r-- | pkgs/build-support/fetchgit/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 0405951a9e4..ee662154cc7 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -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))); |