3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/argocd/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, packr }:
2020-02-13 20:12:29 +00:00
buildGoModule rec {
pname = "argocd";
2021-02-20 18:08:25 +00:00
version = "1.8.5";
2021-02-17 21:14:59 +00:00
commit = "28aea3dfdede00443b52cc584814d80e8f896200";
2020-02-13 20:12:29 +00:00
src = fetchFromGitHub {
owner = "argoproj";
repo = "argo-cd";
rev = "v${version}";
2021-02-20 18:08:25 +00:00
sha256 = "sha256-JjxibnGSDTjd0E9L3X2wnl9G713IYBs+O449RdrT19w=";
2020-02-13 20:12:29 +00:00
};
2021-02-20 18:08:25 +00:00
vendorSha256 = "sha256-rZ/ox180h9scocheYtMmKkoHY2/jH+I++vYX8R0fdlA=";
2020-02-13 20:12:29 +00:00
doCheck = false;
2020-02-13 20:12:29 +00:00
nativeBuildInputs = [ packr ];
2020-02-20 01:48:39 +00:00
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
'';
2020-02-13 20:12:29 +00:00
# run packr to embed assets
preBuild = ''
packr
'';
meta = with lib; {
2020-02-13 20:12:29 +00:00
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 ];
};
}