Skip to content

Commit f6c5891

Browse files
committed
fix(nimbus): Replace fakeGit with real git and keep .git dir
1 parent 8c03ef8 commit f6c5891

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/nimbus/default.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
fetchFromGitHub,
44
darwin,
55
lib,
6+
git,
67
nim,
78
cmake,
89
which,
@@ -29,16 +30,16 @@ assert nim.version == "1.6.12";
2930
owner = "status-im";
3031
repo = "nimbus-eth2";
3132
rev = "v${version}";
32-
hash = "sha256-hdegrv+VbhQhk6O91oQDmj3vfm29dX/p1ygcNg25n24=";
33+
hash = "sha256-xp+7NE7cMxBV2pcwY4B2WrppCG+2N2Su+bWmCKllMPI=";
3334
fetchSubmodules = true;
35+
leaveDotGit = true;
3436
};
3537

3638
# Fix for Nim compiler calling 'git rev-parse' and 'lsb_release'.
3739
nativeBuildInputs = let
38-
fakeGit = writeScriptBin "git" "echo $commit";
3940
fakeLsbRelease = writeScriptBin "lsb_release" "echo nix";
4041
in
41-
[fakeGit fakeLsbRelease nim which cmake]
42+
[git fakeLsbRelease nim which cmake]
4243
++ lib.optionals stdenv.isDarwin [darwin.cctools];
4344

4445
enableParallelBuilding = true;

0 commit comments

Comments
 (0)