2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, packr }:
|
2020-02-13 20:12:29 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "argocd";
|
|
|
|
version = "1.4.2";
|
2020-02-20 01:48:39 +00:00
|
|
|
commit = "48cced9d925b5bc94f6aa9fa4a8a19b2a59e128a";
|
2020-02-13 20:12:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "argoproj";
|
|
|
|
repo = "argo-cd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "01vsyrks1k5yfvrarv8ia0isr7snilr21b7lfiy860si82r2r8hj";
|
|
|
|
};
|
|
|
|
|
|
|
|
modSha256 = "1qivg7yy7ymmgkrvl365x29d8jnsphbz18j1ykgwwysyw3n4jkdg";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ packr ];
|
|
|
|
|
|
|
|
patches = [ ./use-go-module.patch ];
|
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
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|