File tree Expand file tree Collapse file tree 2 files changed +74
-1
lines changed Expand file tree Collapse file tree 2 files changed +74
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments