Skip to content

Commit

Permalink
don't build Std in Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Jan 23, 2024
1 parent ac69c8f commit 71eda0b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions nix/bootstrap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,7 @@ rec {
depRoots = symlinkJoin { name = "depRoots"; paths = map (l: l.depRoots) stdlib; };
iTree = symlinkJoin { name = "ileans"; paths = map (l: l.iTree) stdlib; };
Leanc = build { name = "Leanc"; src = lean-bin-tools-unwrapped.leanc_src; deps = stdlib; roots = [ "Leanc" ]; };
Std = build {
name = "Std";
src = fetchTree {
type = "github";
owner = "leanprover";
repo = "std4";
rev = lib.removeSuffix "\n" (readFile ../src/std4.commit);
};
deps = stdlib;
};
# if building Std in Nix is too bothersome, we can also use this
# placate `-lStd`
fakeStd = runCommand "fakeStd" { buildInputs = [ stdenv.cc ]; } ''
mkdir $out
ar cru "$out/libStd${stdenv.hostPlatform.extensions.sharedLibrary}"
Expand Down

0 comments on commit 71eda0b

Please sign in to comment.