Skip to content

Commit

Permalink
Problem: go1.18 on nix don't work on macos (#799)
Browse files Browse the repository at this point in the history
Solution:
- use go1.17 on macos for now
  • Loading branch information
yihuang authored Jul 4, 2022
1 parent f1bc423 commit 0b3777d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, buildGoApplication
, nix-gitignore
, go_1_18
, go_1_17
, libwasmvm
, rocksdb ? null
, db_backend ? "goleveldb"
Expand Down Expand Up @@ -36,7 +37,9 @@ in
buildGoApplication rec {
pname = "chain-maind";
version = "4.0.0";
go = go_1_18;
# TODO need to wait for nixpkgs to update mac sdk before using go_1_18 on mac
# https://github.com/NixOS/nixpkgs/issues/101229
go = if stdenv.isDarwin then go_1_17 else go_1_18;
src = lib.cleanSourceWith {
name = "src";
src = lib.sourceByRegex ./. src_regexes;
Expand Down

0 comments on commit 0b3777d

Please sign in to comment.