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 }:
|
{ fetchgit, fetchhg, fetchzip, lib }:
|
||||||
|
|
||||||
lib.makeOverridable (
|
let
|
||||||
|
inherit (lib)
|
||||||
|
assertOneOf
|
||||||
|
makeOverridable
|
||||||
|
optionalString
|
||||||
|
;
|
||||||
|
in
|
||||||
|
|
||||||
|
makeOverridable (
|
||||||
{ owner
|
{ owner
|
||||||
, repo, rev
|
, repo, rev
|
||||||
, domain ? "sr.ht"
|
, domain ? "sr.ht"
|
||||||
|
@ -10,9 +18,7 @@ lib.makeOverridable (
|
||||||
, ... # For hash agility
|
, ... # For hash agility
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
with lib;
|
assert (assertOneOf "vc" vc [ "hg" "git" ]);
|
||||||
|
|
||||||
assert (lib.assertOneOf "vc" vc [ "hg" "git" ]);
|
|
||||||
|
|
||||||
let
|
let
|
||||||
urlFor = resource: "https://${resource}.${domain}/${owner}/${repo}";
|
urlFor = resource: "https://${resource}.${domain}/${owner}/${repo}";
|
||||||
|
|
Loading…
Reference in a new issue