Skip to content

Commit 43e6031

Browse files
committed
flake: go version in string
1 parent 292253f commit 43e6031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flake.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
# Nixpkgs instantiated for supported system types.
2323
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
2424

25+
goVersion = "1.22.3";
2526
goOverlay = final: prev: {
2627
go = prev.go.overrideAttrs (old: {
27-
version = "1.22.3";
28-
28+
version = goVersion;
2929
src = prev.fetchurl {
30-
url = "https://go.dev/dl/go1.22.3.src.tar.gz";
30+
url = "https://go.dev/dl/go${goVersion}.src.tar.gz";
3131
hash = "sha256-gGSO80+QMZPXKlnA3/AZ9fmK4MmqE63gsOy/+ZGnb2g=";
3232
};
3333
});

0 commit comments

Comments
 (0)