Skip to content

Commit

Permalink
deps: add overlay for Go 1.22.2
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Apr 4, 2024
1 parent 0697985 commit 67b9fde
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion overlays/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -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 = "";
Expand All @@ -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=";
};
});
}

0 comments on commit 67b9fde

Please sign in to comment.