Skip to content

Commit d2261a9

Browse files
committed
[nix] differentiate hash for darwin in gcd.nix
Signed-off-by: Qiming Chu <[email protected]>
1 parent 428636f commit d2261a9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

templates/chisel/nix/gcd/gcd.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ let
2424
publishMillModule {
2525
name = "chisel";
2626
version = "9999";
27-
outputHash = "sha256-wXDmafSEoJxg1mv6uleKtRDCuFuTdEt+FmiH6NO7anc=";
27+
outputHash =
28+
if stdenv.hostPlatform.isDarwin then
29+
"sha256-wXDmafSEoJxg1mv6uleKtRDCuFuTdEt+FmiH6NO7anc="
30+
else
31+
"sha256-vmuJyLQrgAe2ffMNxzKKUygk4WGoxHjq0cR1o+wZ0u8=";
2832
publishPhase = "mill -i unipublish.publishLocal";
2933
nativeBuildInputs = [ git ];
3034
};
@@ -54,7 +58,11 @@ let
5458
fileset = unions [ ./../../build.mill ./../../common.mill ];
5559
};
5660
millDepModules = [ chisel ];
57-
millDepsHash = "sha256-saHZcLBulNESco16mqwgiPndFA/V+4uexnqgLCinuWs=";
61+
millDepsHash =
62+
if stdenv.hostPlatform.isDarwin then
63+
"sha256-saHZcLBulNESco16mqwgiPndFA/V+4uexnqgLCinuWs="
64+
else
65+
"sha256-MA8Yx99ItVRhNPB/LigwCaTMywrJF3JEYv3fSeWdeNk=";
5866
};
5967

6068
editable = self.overrideAttrs (_: {

0 commit comments

Comments
 (0)