mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Avoid top-level with ...;
in pkgs/build-support/fetchsourcehut/default.nix
This commit is contained in:
parent
aa32ce526a
commit
869e556606
@ -1,6 +1,14 @@
|
||||
{ fetchgit, fetchhg, fetchzip, lib }:
|
||||
|
||||
lib.makeOverridable (
|
||||
let
|
||||
inherit (lib)
|
||||
assertOneOf
|
||||
makeOverridable
|
||||
optionalString
|
||||
;
|
||||
in
|
||||
|
||||
makeOverridable (
|
||||
{ owner
|
||||
, repo, rev
|
||||
, domain ? "sr.ht"
|
||||
@ -10,9 +18,7 @@ lib.makeOverridable (
|
||||
, ... # For hash agility
|
||||
} @ args:
|
||||
|
||||
with lib;
|
||||
|
||||
assert (lib.assertOneOf "vc" vc [ "hg" "git" ]);
|
||||
assert (assertOneOf "vc" vc [ "hg" "git" ]);
|
||||
|
||||
let
|
||||
urlFor = resource: "https://${resource}.${domain}/${owner}/${repo}";
|
||||
|
Loading…
Reference in New Issue
Block a user