Skip to content

Commit

Permalink
[nix] differentiate hash for darwin in gcd.nix
Browse files Browse the repository at this point in the history
Signed-off-by: Qiming Chu <[email protected]>
  • Loading branch information
Emin017 committed Feb 1, 2025
1 parent 428636f commit d2261a9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions templates/chisel/nix/gcd/gcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ let
publishMillModule {
name = "chisel";
version = "9999";
outputHash = "sha256-wXDmafSEoJxg1mv6uleKtRDCuFuTdEt+FmiH6NO7anc=";
outputHash =
if stdenv.hostPlatform.isDarwin then
"sha256-wXDmafSEoJxg1mv6uleKtRDCuFuTdEt+FmiH6NO7anc="
else
"sha256-vmuJyLQrgAe2ffMNxzKKUygk4WGoxHjq0cR1o+wZ0u8=";
publishPhase = "mill -i unipublish.publishLocal";
nativeBuildInputs = [ git ];
};
Expand Down Expand Up @@ -54,7 +58,11 @@ let
fileset = unions [ ./../../build.mill ./../../common.mill ];
};
millDepModules = [ chisel ];
millDepsHash = "sha256-saHZcLBulNESco16mqwgiPndFA/V+4uexnqgLCinuWs=";
millDepsHash =
if stdenv.hostPlatform.isDarwin then
"sha256-saHZcLBulNESco16mqwgiPndFA/V+4uexnqgLCinuWs="
else
"sha256-MA8Yx99ItVRhNPB/LigwCaTMywrJF3JEYv3fSeWdeNk=";
};

editable = self.overrideAttrs (_: {
Expand Down

0 comments on commit d2261a9

Please sign in to comment.