mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #280260 from netthier/update-kluctl
This commit is contained in:
commit
2d1e08a2af
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user