Skip to content

Commit

Permalink
Merge pull request #12 from lenianiva/feature/toolchain
Browse files Browse the repository at this point in the history
feat: Shallow fetch
  • Loading branch information
lenianiva authored Oct 27, 2024
2 parents 6919763 + 324fde8 commit 51e51a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
depToPackage = dep : let
src = pkgs.lib.cleanSource (builtins.fetchGit {
inherit (dep) url rev;
shallow = true;
});
in {
inherit src;
Expand Down
1 change: 1 addition & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let
readFromGit = args: readSrc (builtins.fetchGit args);
readRev = rev: readFromGit {
url = "https://github.com/leanprover/lean4.git";
shallow = true;
inherit rev;
};
tags = builtins.mapAttrs (tag: manifest: readRev manifest.rev) manifests;
Expand Down

0 comments on commit 51e51a2

Please sign in to comment.