40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, packr }:
|
|
|
|
buildGoModule rec {
|
|
pname = "argocd";
|
|
version = "1.8.6";
|
|
commit = "28aea3dfdede00443b52cc584814d80e8f896200";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "argoproj";
|
|
repo = "argo-cd";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kJ3/1owK5T+FbcvjmK2CO+i/KwmVZRSGzF6fCt8J9E8=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-rZ/ox180h9scocheYtMmKkoHY2/jH+I++vYX8R0fdlA=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ packr ];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X github.com/argoproj/argo-cd/common.version=${version}
|
|
-X github.com/argoproj/argo-cd/common.buildDate=unknown
|
|
-X github.com/argoproj/argo-cd/common.gitCommit=${commit}
|
|
-X github.com/argoproj/argo-cd/common.gitTreeState=clean
|
|
'';
|
|
|
|
# run packr to embed assets
|
|
preBuild = ''
|
|
packr
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes";
|
|
homepage = "https://github.com/argoproj/argo";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ shahrukh330 ];
|
|
};
|
|
}
|