Skip to content

Commit e96db7c

Browse files
committed
fix: pass go override in overlays
1 parent 1bfa11b commit e96db7c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

nix/overlays/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
};
6363

6464
# place the gatekeeper module in the expected libpam location
65-
gatekeeper = self.inputs.gatekeeper.packages.${final.system}.default;
65+
gatekeeper = self.inputs.gatekeeper.packages.${final.system}.default.override {
66+
go = self.inputs.nixpkgs-go124.legacyPackages.${final.system}.go_1_24;
67+
};
6668
linux-pam = prev.linux-pam.overrideAttrs (old: {
6769
postInstall =
6870
(old.postInstall or "")

nix/packages/gatekeeper.nix

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44
{ system, ... }:
55
let
66

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!";
7+
go124 = inputs.nixpkgs-go124.legacyPackages.${system}.go_1_24;
158
in
169
{
1710
packages.gatekeeper = inputs.gatekeeper.lib.${system}.makeGatekeeper { go = go124; };

0 commit comments

Comments
 (0)