Skip to content

Commit a83a3a3

Browse files
kargo: init at 1.3.0 (#385092)
2 parents a245263 + 9aaeb81 commit a83a3a3

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

pkgs/by-name/ka/kargo/package.nix

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
installShellFiles,
6+
kargo,
7+
stdenv,
8+
testers,
9+
writableTmpDirAsHomeHook,
10+
}:
11+
12+
buildGoModule rec {
13+
pname = "kargo";
14+
version = "1.3.0";
15+
16+
src = fetchFromGitHub {
17+
owner = "akuity";
18+
repo = "kargo";
19+
tag = "v${version}";
20+
hash = "sha256-GC3u4v8qrVi8+Ne08f074DvPh0RFmpmCOdJ5XD3kk+o=";
21+
};
22+
23+
vendorHash = "sha256-Xb+9zu2uivOYETtz3ryMnBUJ3gJ/1ta1dLEpsD00jpU=";
24+
25+
subPackages = [ "cmd/cli" ];
26+
27+
ldflags =
28+
let
29+
package_url = "github.com/akuity/kargo/internal/version";
30+
in
31+
[
32+
"-s"
33+
"-w"
34+
"-X ${package_url}.version=${version}"
35+
"-X ${package_url}.buildDate=1970-01-01T00:00:00Z"
36+
"-X ${package_url}.gitCommit=${src.rev}"
37+
"-X ${package_url}.gitTreeState=clean"
38+
];
39+
40+
nativeBuildInputs = [
41+
installShellFiles
42+
writableTmpDirAsHomeHook
43+
];
44+
45+
installPhase = ''
46+
runHook preInstall
47+
mkdir -p $out/bin
48+
install -Dm755 "$GOPATH/bin/cli" -T $out/bin/kargo
49+
runHook postInstall
50+
'';
51+
52+
passthru.tests.version = testers.testVersion {
53+
package = kargo;
54+
command = "HOME=$TMPDIR ${meta.mainProgram} version --client";
55+
};
56+
57+
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
58+
installShellCompletion --cmd kargo \
59+
--bash <($out/bin/kargo completion bash) \
60+
--fish <($out/bin/kargo completion fish) \
61+
--zsh <($out/bin/kargo completion zsh)
62+
'';
63+
64+
meta = {
65+
description = "Application lifecycle orchestration";
66+
mainProgram = "kargo";
67+
downloadPage = "https://github.com/akuity/kargo";
68+
homepage = "https://kargo.akuity.io";
69+
license = lib.licenses.asl20;
70+
maintainers = with lib.maintainers; [
71+
bbigras
72+
];
73+
};
74+
}

pkgs/top-level/aliases.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,6 @@ mapAliases {
705705
kube3d = k3d; # Added 2022-0705
706706
kafkacat = throw "'kafkacat' has been renamed to/replaced by 'kcat'"; # Converted to throw 2024-10-17
707707
kak-lsp = kakoune-lsp; # Added 2024-04-01
708-
kargo = throw "kargo was removed as it is deprecated upstream and depends on the removed boto package"; # Added 2024-09-22
709708
kdbplus = throw "'kdbplus' has been removed from nixpkgs"; # Added 2024-05-06
710709
kdeconnect = throw "'kdeconnect' has been renamed to/replaced by 'plasma5Packages.kdeconnect-kde'"; # Converted to throw 2024-10-17
711710
keepkey_agent = keepkey-agent; # added 2024-01-06

0 commit comments

Comments
 (0)