Skip to content

Commit

Permalink
switched to default buildGoModule and applied patch to fix gobuild 12…
Browse files Browse the repository at this point in the history
…0+ compat issue (#139)

Co-authored-by: Christian Kögler <[email protected]>
  • Loading branch information
RobbieBuxton and ck3d authored May 11, 2024
1 parent d65b45d commit 7b251c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions modules/flake/k3s/builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ lib:
, fetchurl
, fetchzip
, fetchgit
, fetchpatch
, zstd
, yq-go
, sqlite
Expand Down Expand Up @@ -191,6 +192,11 @@ let
../patches/k3s-rootless-state-dir.patch
# See: https://github.com/k3s-io/k3s/pull/9319
../patches/k3s-nix-snapshotter.patch
# See: https://github.com/k3s-io/k3s/pull/9064
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/k3s-io/k3s/pull/9064.patch";
sha256 = "sha256-xp9nGIalSvDLfccQ+HNQqWT8z2LKH1HfCuaYxieMT94=";
})
];

nativeBuildInputs = [ pkg-config ];
Expand Down
4 changes: 1 addition & 3 deletions modules/flake/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
nix-snapshotter
;

k3s = (self.callPackage ./k3s {
buildGoModule = self.buildGo120Module;
}).k3s_1_27;
k3s = (self.callPackage ./k3s {}).k3s_1_27;
};

perSystem = { system, ... }: {
Expand Down

0 comments on commit 7b251c9

Please sign in to comment.