2021-06-28 23:13:55 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "agebox";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "0.6.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slok";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-W6/v5BIl+k6tMan/Wdua7mHKMsq23QZN13Cy24akJr4=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
vendorHash = "sha256-PLeNTlQ0OMcupfbVN/KGb0iJYf3Jbcevg8gTcKHpn8s=";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2023-10-09 19:29:22 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-06-28 23:13:55 +00:00
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/slok/agebox";
|
|
|
|
changelog = "https://github.com/slok/agebox/releases/tag/v${version}";
|
|
|
|
description = "Age based repository file encryption gitops tool";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "agebox";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|