Skip to content

Commit 731a984

Browse files
staaldraadsamrose
authored andcommitted
fix: fmt and go version, hopefully
1 parent 7af1e1d commit 731a984

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
1414
git-hooks.url = "github:cachix/git-hooks.nix";
1515
git-hooks.inputs.nixpkgs.follows = "nixpkgs";
16-
nixpkgs-go124.url = "github:Nixos/nixpkgs/d2ac4dfa61fba987a84a0a81555da57ae0b9a2b0";
16+
nixpkgs-go124.url = "github:Nixos/nixpkgs/3b9f00d7a7bf68acd4c4abb9d43695afb04e03a5";
1717
gatekeeper.url = "git+ssh://[email protected]/supabase/jit-db-gatekeeper?ref=sam/add-flake-parts&rev=34ba4a222c15b2480b837bbb3076508f36c9296f";
1818
gatekeeper.inputs.nixpkgs.follows = "nixpkgs";
1919
};

nix/packages/gatekeeper.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
perSystem =
44
{ system, ... }:
55
let
6-
go124 = inputs.nixpkgs-go124.legacyPackages.${system}.go_1_24;
6+
7+
go124 =
8+
let
9+
candidate = inputs.nixpkgs-go124.legacyPackages.${system};
10+
in
11+
if candidate ? go_1_24 then
12+
candidate.go_1_24
13+
else
14+
throw "❌ nixpkgs-go124.${system} does not provide go_1_24!";
715
in
816
{
917
packages.gatekeeper = inputs.gatekeeper.lib.${system}.makeGatekeeper { go = go124; };

0 commit comments

Comments
 (0)