Skip to content

Commit

Permalink
Pin go version via nixpkgs
Browse files Browse the repository at this point in the history
There's a bug in >= go1.22.5 that breaks gio apps on android:
golang/go#68285

Pin to nixpkgs with go.1.22.3 until there is a released fix for this.

The rev here has an existing hydra build available
  • Loading branch information
psanford committed Nov 30, 2024
1 parent b7d6bfc commit 91eb330
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ with import <nixpkgs> {
};

let
pinPkgsFetch = pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "a9858885e197f984d92d7fe64e9fff6b2e488d40";
# Hash obtained using `nix-prefetch-url --unpack --unpack https://github.com/nixos/nixpkgs/archive/<rev>.tar.gz`
sha256 = "0a55lp827bfx102czy0bp5d6pbp5lh6l0ysp3zs0m1gyniy2jck9";
};
pinPkgs = import pinPkgsFetch {
config.android_sdk.accept_license = true;
config.allowUnfree = true;
};

buildToolsVersion = "33.0.2";
androidComposition = androidenv.composeAndroidPackages {
platformVersions = [ "30" "33" ];
Expand All @@ -18,7 +30,7 @@ pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
openjdk17
androidComposition.androidsdk
go_1_22
pinPkgs.go_1_22
];

shellHook = ''
Expand Down

0 comments on commit 91eb330

Please sign in to comment.