mochi/nixos/overlays/go/default.nix

13 lines
311 B
Nix
Raw Normal View History

2024-07-03 17:45:35 -05:00
{ ... }:
let
finalVersion = "1.22.4";
in
(final: prev: {
go_1_22 = prev.go_1_22.overrideAttrs (oldAttrs: {
2024-07-03 17:45:35 -05:00
version = finalVersion;
src = prev.fetchurl {
url = "https://go.dev/dl/go${finalVersion}.src.tar.gz";
hash = "sha256-/tcgZ45yinyjC6jR3tHKr+J9FgKPqwIyuLqOIgCPt4Q=";
};
});
})