mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
28 lines
710 B
Nix
28 lines
710 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "agebox";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "slok";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1gi6lj3dpckhsx6hdpdnr8rclqgfkbdmkzx966nlxyi52bjfzbsv";
|
|
};
|
|
vendorSha256 = "1jwzx6hp04y8hfpwfvf9zmhqjj3ghvr3gmgnllpcff1lai78vdrw";
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-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 ];
|
|
};
|
|
}
|