Skip to content

Commit 631b3a2

Browse files
authored
also patch kevm-pyk src to make cachix build match usual nix build (#2745)
1 parent 1d02e19 commit 631b3a2

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

flake.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@
6060
".github/"
6161
"result*"
6262
"*.nix"
63-
"deps/"
6463
"kevm-pyk/"
65-
# submodule directories are initilized empty by git, but
66-
# not included by nix flakes/nix CLI
64+
# do not include submodule directories that might be initilized empty or non-existent
65+
"/deps/"
6766
"/tests/ethereum-tests"
6867
"/web/k-web-theme"
6968
] ./.);
@@ -130,7 +129,13 @@
130129

131130
kevm-pyk = poetry2nix.mkPoetryApplication {
132131
python = prev.python310;
133-
projectDir = ./kevm-pyk;
132+
projectDir = prev.lib.cleanSource (
133+
prev.nix-gitignore.gitignoreSourcePure [
134+
./.gitignore
135+
# do not include submodule directories that might be initilized empty or non-existent
136+
"/src/kevm_pyk/kproj/plugin"
137+
] ./kevm-pyk/.
138+
);
134139
overrides = poetry2nix.overrides.withDefaults
135140
(finalPython: prevPython: {
136141
kframework = prev.pyk-python310;
@@ -204,8 +209,11 @@
204209
".github/"
205210
"result*"
206211
"*.nix"
207-
"deps/"
208212
"kevm-pyk/"
213+
# do not include submodule directories that might be initilized empty or non-existent
214+
"/deps/"
215+
"/tests/ethereum-tests"
216+
"/web/k-web-theme"
209217
] ./.);
210218
};
211219

0 commit comments

Comments
 (0)