Avoid top-level with ...;
in pkgs/build-support/fetchsourcehut/default.nix
This commit is contained in:
parent
aa32ce526a
commit
869e556606
1 changed files with 10 additions and 4 deletions
|
@ -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 a new issue