Skip to content

Commit 553cfeb

Browse files
Merge pull request #7 from Anderssorby/acs/fix-nix
fix: Nix build
2 parents 2940e8d + 23ea6db commit 553cfeb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

flake.nix

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,15 @@
3030
name = "Ipld"; # must match the name of the top-level .lean file
3131
project = leanPkgs.buildLeanPackage {
3232
inherit name;
33-
# deps = [ lean-ipld.project.${system} ];
3433
# Where the lean files are located
35-
src = ./src;
34+
src = ./.;
3635
};
3736
test = leanPkgs.buildLeanPackage {
3837
name = "Tests";
3938
deps = [ project ];
4039
# Where the lean files are located
41-
src = ./test;
40+
src = ./.;
4241
};
43-
joinDepsDerivationns = getSubDrv:
44-
pkgs.lib.concatStringsSep ":" (map (d: "${getSubDrv d}") ([ project ] ++ project.allExternalDeps));
4542
in
4643
{
4744
inherit project test;
@@ -58,8 +55,8 @@
5855
buildInputs = with pkgs; [
5956
leanPkgs.lean-dev
6057
];
61-
LEAN_PATH = "./src:./test:" + joinDepsDerivationns (d: d.modRoot);
62-
LEAN_SRC_PATH = "./src:./test:" + joinDepsDerivationns (d: d.src);
58+
LEAN_PATH = "./src:./test";
59+
LEAN_SRC_PATH = "./src:./test";
6360
};
6461
});
6562
}

0 commit comments

Comments
 (0)