Skip to content

Commit a14363f

Browse files
committed
Fix build on macOS
1 parent 3588181 commit a14363f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinygo.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let
1111
};
1212
"aarch64-darwin" = {
1313
url = "https://github.com/tinygo-org/tinygo/releases/download/v${version}/tinygo${version}.darwin-arm64.tar.gz";
14-
sha256 = lib.fakeSha256;
14+
sha256 = "sha256-apuuTleq+L+BTNYt9tUn1AI5TspZJXsrsd3dO8s6Uac=";
1515
};
1616
"x86_64-linux" = {
1717
url = "https://github.com/tinygo-org/tinygo/releases/download/v${version}/tinygo${version}.linux-amd64.tar.gz";
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
3333
inherit (sources.${stdenv.hostPlatform.system}) url sha256;
3434
};
3535

36-
nativeBuildInputs = [ autoPatchelfHook ];
36+
nativeBuildInputs = [ ] ++ lib.optionals (!stdenv.isDarwin) [ autoPatchelfHook ];
3737

3838
installPhase = ''
3939
mkdir -p $out

0 commit comments

Comments
 (0)