From 67b9fde1d44c884abaa61eaadb3d13c13c996310 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 4 Apr 2024 08:45:06 +0200 Subject: [PATCH] deps: add overlay for Go 1.22.2 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- overlays/nixpkgs.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/overlays/nixpkgs.nix b/overlays/nixpkgs.nix index 935486b7a3..537b1d9467 100644 --- a/overlays/nixpkgs.nix +++ b/overlays/nixpkgs.nix @@ -1,4 +1,4 @@ -_final: _prev: { +final: prev: { # Use when a version of Go is needed that is not available in the nixpkgs yet. # go = prev.go.overrideAttrs (finalAttrs: _prevAttrs: { # version = ""; @@ -7,4 +7,11 @@ _final: _prev: { # hash = ""; # }; # }); + go = prev.go.overrideAttrs (finalAttrs: prevAttrs: { + version = "1.22.2"; + src = final.fetchurl { + url = "https://go.dev/dl/go${finalAttrs.version}.src.tar.gz"; + hash = "sha256-N06oKyiexzjpaCZ8rFnH1f8YD5SSJQJUeEsgROkN9ak="; + }; + }); }