From 0dbe6cbd6eba1a980eaeacda38f42f2b71a21a03 Mon Sep 17 00:00:00 2001 From: Daniel-Andrei Minca Date: Sun, 7 Jul 2024 16:08:25 +0200 Subject: [PATCH] fix: override the vendorHash * this is a terrible hack but unfortunately it's necessary because buildGoModule computes the vendorHash after installing all Go modules * although overriding the vendorHash works just fine, there's still something wrong because the overlay is not applied properly, as per kluctl --version kluctl version v2.22.1 Resolves: Related: NixOS/nixpkgs#86349 Signed-off-by: Daniel-Andrei Minca --- overlays/kluctl/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/overlays/kluctl/default.nix b/overlays/kluctl/default.nix index f994391..45a1fe2 100644 --- a/overlays/kluctl/default.nix +++ b/overlays/kluctl/default.nix @@ -4,6 +4,7 @@ kluctl = prev.kluctl.override { buildGoModule = previousArgs: let self = prev.buildGoModule (previousArgs // { version = "2.25.0"; + vendorHash = "sha256-TckT39wQn4dclcYSfxootv1Lw5+iYxY6/wwdUc1+Z6s="; src = prev.fetchFromGitHub { owner = "kluctl"; repo = "kluctl";