Avoid top-level with ...; in pkgs/build-support/fetchrepoproject/default.nix

This commit is contained in:
Philip Taron 2024-03-14 09:52:08 -07:00 committed by Valentin Gagarin
parent 4fc5d50549
commit aa32ce526a

View file

@ -9,9 +9,14 @@
assert repoRepoRev != "" -> repoRepoURL != "";
assert createMirror -> !useArchive;
with lib;
let
inherit (lib)
concatMapStringsSep
concatStringsSep
fetchers
optionalString
;
extraRepoInitFlags = [
(optionalString (repoRepoURL != "") "--repo-url=${repoRepoURL}")
(optionalString (repoRepoRev != "") "--repo-branch=${repoRepoRev}")