1
0
Fork 0
nur/pkgs/git-age/default.nix

29 lines
632 B
Nix

{
buildGoModule,
fetchFromGitea,
lib,
...
}:
buildGoModule rec {
pname = "git-age";
version = "0.0.1";
src = fetchFromGitea {
domain = "git.jojodev.com";
owner = "jolheiser";
repo = "git-age";
rev = "v${version}";
sha256 = "sha256-cimuOXQcIPy3takizUKz/D0Ter1HvdNTGODpjbngo/A=";
};
vendorSha256 = "sha256-ZTpTOhtlKxux1gJGkCpVbkfgeLqF/UKdps0YGgVfeyo=";
ldflags = ["-s" "-w" "-X=go.jolheiser.com/git-age/cmd.version=${version}"];
meta = with lib; {
description = "git-crypt, but with age";
homepage = "https://git.jojodev.com/jolheiser/git-age";
license = licenses.mit;
};
}