Merge pull request #280260 from netthier/update-kluctl

This commit is contained in:
Sandro 2024-07-18 11:13:33 +02:00 committed by GitHub
commit 2d1e08a2af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,25 +1,29 @@
{ lib, buildGoModule, fetchFromGitHub, testers, kluctl }:
{ lib, buildGoModule, fetchFromGitHub, testers, makeWrapper, python310, kluctl }:
buildGoModule rec {
pname = "kluctl";
version = "2.22.1";
version = "2.25.0";
src = fetchFromGitHub {
owner = "kluctl";
repo = "kluctl";
rev = "v${version}";
hash = "sha256-s7ADEWy3wx2hGeJzfXPVSBv+bAOoOQPsF75Sq02T/AI=";
hash = "sha256-WtTBkc9mop+bfMcVLI8k4Bqmift5JG9riF+QbDeiR9c=";
};
subPackages = [ "cmd" ];
vendorHash = "sha256-EEOVd15f1SK8InSIG+TuVwWibkf+ePJ5AGZpiMD+RaQ=";
vendorHash = "sha256-TckT39wQn4dclcYSfxootv1Lw5+iYxY6/wwdUc1+Z6s=";
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
# Depends on docker
doCheck = false;
nativeBuildInputs = [
makeWrapper
];
passthru.tests.version = testers.testVersion {
package = kluctl;
version = "v${version}";
@ -27,6 +31,9 @@ buildGoModule rec {
postInstall = ''
mv $out/bin/{cmd,kluctl}
wrapProgram $out/bin/kluctl \
--set KLUCTL_USE_SYSTEM_PYTHON 1 \
--prefix PATH : '${lib.makeBinPath [ python310 ]}'
'';
meta = with lib; {