@@ -467,11 +467,19 @@ gitHubStandaloneLoaderV3 = T.unlines
467467plainGitStandaloneLoaders :: NonEmpty Text
468468plainGitStandaloneLoaders =
469469 plainGitStandaloneLoaderV1 :|
470− [
470+ [ plainGitStandaloneLoaderV2
471471 ]
472472
473473plainGitStandaloneLoaderV1 :: Text
474474plainGitStandaloneLoaderV1 = T.unlines
475+ [ "# DO NOT HAND-EDIT THIS FILE"
476+ , "let fetchGit = {url, rev, ref ? null, branch ? null, sha256 ? null, fetchSubmodules ? null}:"
477+ , " assert !fetchSubmodules; (import <nixpkgs> {}).fetchgit { inherit url rev sha256; };"
478+ , "in import (fetchGit (builtins.fromJSON (builtins.readFile ./git.json)))"
479+ ]
480+
481+plainGitStandaloneLoaderV2 :: Text
482+plainGitStandaloneLoaderV2 = T.unlines
475483 [ "# DO NOT HAND-EDIT THIS FILE"
476484 , "let fetchGit = {url, rev, ref ? null, branch ? null, sha256 ? null, fetchSubmodules ? null}:"
477485 , " if builtins.hasAttr \"fetchGit\" builtins"