Skip to content

Commit 50266c9

Browse files
chore: flake add patch to avoid network nim-sds clone
1 parent f4bf76a commit 50266c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
# Add Go, git, and GNU Make
6969
buildInputs = statusGo.library.buildInputs ++ [ pkgs.go pkgs.git pkgs.gnumake pkgs.protobuf ];
7070

71+
patchPhase = ''
72+
echo "Patching sds Makefile to avoid network clone..."
73+
substituteInPlace vendor/github.com/waku-org/sds-go-bindings/sds/Makefile \
74+
--replace-warn "git clone https://github.com/waku-org/nim-sds" \
75+
"cp -r ${pkgs.nim-sds} nim-sds"
76+
'';
77+
7178
# Reuse buildPhase etc. if needed
7279
inherit (statusGo.library) preBuild buildPhase installPhase;
7380
};

0 commit comments

Comments
 (0)