Skip to content

Commit c296e83

Browse files
committed
update go in flake overlay
1 parent 4759617 commit c296e83

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

Diff for: flake.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: flake.nix

+7
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,15 @@
2929
perSystem = {
3030
config,
3131
pkgs,
32+
system,
3233
...
3334
}: {
35+
_module.args.pkgs = import inputs.nixpkgs {
36+
inherit system;
37+
overlays = [
38+
(import ./packaging/nix/naisdevice/overlay.nix)
39+
];
40+
};
3441
packages.default = config.packages.naisdevice;
3542

3643
packages.naisdevice = pkgs.callPackage ./packaging/nix/naisdevice/package.nix {inherit self;};

Diff for: packaging/nix/naisdevice/overlay.nix

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
let
2+
goVersion = "1.22.4";
3+
goSha256 = "sha256-/tcgZ45yinyjC6jR3tHKr+J9FgKPqwIyuLqOIgCPt4Q=";
4+
in
5+
_final: prev: {
6+
go = prev.go.overrideAttrs (_old: {
7+
version = goVersion;
8+
src = prev.fetchurl {
9+
url = "https://go.dev/dl/go${goVersion}.src.tar.gz";
10+
hash = goSha256;
11+
};
12+
});
13+
}

0 commit comments

Comments
 (0)