Merge pull request #147388 from sagikazarmark/add-argocd-autopilot
This commit is contained in:
commit
8c8172151a
@ -0,0 +1,55 @@
|
|||||||
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "argocd-autopilot";
|
||||||
|
version = "0.3.0";
|
||||||
|
commit = "c8d17bef976649e4dc2428c14c39e30a0f846552";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "argoproj-labs";
|
||||||
|
repo = "argocd-autopilot";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-tggE1T+oD/dJS9tD9xOExjhy+T1GDd0vwTerD3P2KvA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-v8UMSObE6w+ULzueEK0UFeebLqoamy/788SQLBmJZ8U=";
|
||||||
|
|
||||||
|
proxyVendor = true;
|
||||||
|
|
||||||
|
ldflags =
|
||||||
|
let package_url = "github.com/argoproj-labs/argocd-autopilot/pkg/store"; in
|
||||||
|
[
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X ${package_url}.binaryName=${pname}"
|
||||||
|
"-X ${package_url}.version=${src.rev}"
|
||||||
|
"-X ${package_url}.buildDate=unknown"
|
||||||
|
"-X ${package_url}.gitCommit=${commit}"
|
||||||
|
"-X ${package_url}.installationManifestURL=github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=${src.rev}"
|
||||||
|
"-X ${package_url}.installationManifestsNamespacedURL=github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=${src.rev}"
|
||||||
|
];
|
||||||
|
|
||||||
|
subPackages = [ "cmd" ];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
$out/bin/argocd-autopilot version | grep ${src.rev} > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
install -Dm755 "$GOPATH/bin/cmd" -T $out/bin/argocd-autopilot
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "ArgoCD Autopilot";
|
||||||
|
downloadPage = "https://github.com/argoproj-labs/argocd-autopilot";
|
||||||
|
homepage = "https://argocd-autopilot.readthedocs.io/en/stable/";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ sagikazarmark bryanasdev000 ];
|
||||||
|
};
|
||||||
|
}
|
@ -24762,6 +24762,8 @@ with pkgs;
|
|||||||
|
|
||||||
argocd = callPackage ../applications/networking/cluster/argocd { };
|
argocd = callPackage ../applications/networking/cluster/argocd { };
|
||||||
|
|
||||||
|
argocd-autopilot = callPackage ../applications/networking/cluster/argocd-autopilot { };
|
||||||
|
|
||||||
argo-rollouts = callPackage ../applications/networking/cluster/argo-rollouts { };
|
argo-rollouts = callPackage ../applications/networking/cluster/argo-rollouts { };
|
||||||
|
|
||||||
ario = callPackage ../applications/audio/ario { };
|
ario = callPackage ../applications/audio/ario { };
|
||||||
|
Loading…
Reference in New Issue
Block a user