1
0
Fork 0

feat: git-age

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-08-03 16:31:27 -05:00
parent 2cdca7dc58
commit 9795a580a5
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 29 additions and 0 deletions

View File

@ -12,6 +12,7 @@
overlays = import ./overlays; # nixpkgs overlays
# Personal projects
git-age = pkgs.callPackage ./pkgs/git-age {};
gomodinit = pkgs.callPackage ./pkgs/gomodinit {};
imp = pkgs.callPackage ./pkgs/imp {};
tmpl = pkgs.callPackage ./pkgs/tmpl {};

View File

@ -0,0 +1,28 @@
{
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;
};
}