2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, packr }:
|
2020-02-13 20:12:29 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "argocd";
|
2020-11-05 21:38:06 +00:00
|
|
|
version = "1.7.8";
|
|
|
|
commit = "ef5010c3a0b5e027fd642732d03c5b0391b1e574";
|
2020-02-13 20:12:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "argoproj";
|
|
|
|
repo = "argo-cd";
|
|
|
|
rev = "v${version}";
|
2020-11-05 21:38:06 +00:00
|
|
|
sha256 = "1pwk6mzmlsx43c75wl5lglpxgc2jkgzra4443hwp6n0wfgzajfp4";
|
2020-02-13 20:12:29 +00:00
|
|
|
};
|
|
|
|
|
2020-11-05 21:38:06 +00:00
|
|
|
vendorSha256 = "0c5gykijwjrq3cx9qg9hm5j7axccngc1kp5qj3429a2ilw80l8pl";
|
2020-02-13 20:12:29 +00:00
|
|
|
|
2020-08-04 01:26:27 +01: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-07-31 04:58:04 +01:00
|
|
|
|
2020-02-13 20:12:29 +00:00
|
|
|
# run packr to embed assets
|
|
|
|
preBuild = ''
|
|
|
|
packr
|
|
|
|
'';
|
2020-07-31 04:58:04 +01:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|