Skip to content

Commit

Permalink
Downgraded go for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Sep 12, 2024
1 parent 1c94560 commit 38b53f6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ rec {
inputs = {
# nixpkgs.follows = "holonix/nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
gonixpkgs.url =
"github:nixos/nixpkgs/72d8853228c9758820c39b8659415b6d89279493";

holonix.url = "github:holochain/holonix/main-0.3";
rust-overlay.follows = "holonix/rust-overlay";
Expand All @@ -27,18 +29,19 @@ rec {
pkgs.darwin.apple_sdk_10_12
else
pkgs.darwin.apple_sdk_11_0;
go = inputs.gonixpkgs.legacyPackages.${pkgs.system}.go_1_17;
in (pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv

apple_sdk.frameworks.AppKit
apple_sdk.frameworks.WebKit
(pkgs.darwin.apple_sdk_11_0.stdenv.mkDerivation {
name = "go";
nativeBuildInputs = with pkgs; [ makeBinaryWrapper go ];
nativeBuildInputs = [ pkgs.makeBinaryWrapper go ];
dontBuild = true;
dontUnpack = true;
installPhase = ''
makeWrapper ${pkgs.go}/bin/go $out/bin/go
makeWrapper ${go}/bin/go $out/bin/go
'';
})

Expand Down

0 comments on commit 38b53f6

Please sign in to comment.