Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
feat: git-age Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmTMHK8ACgkQuFOtpdp7 v3odQRAAnNy/OHHopul54qJeyp5iOWIISDSsBnPoFIIcx8bMBPS9hdDayqKGuFt3 PwZzMatd3dbH2mCkDV2aqolty2Ezzrwu0LNBpKCquDupBg4gwrY6fKG3KhdXBQCk Lip6ATlGKn1tfG2+yjME6Zfapu3wnewEd8ZtmCPq5+O8jGwQc0s+ZIM1pmahSm4+ wfkWrI5pt5c3hgpjRc9b0QhjkI/zUkcofhBkPmvi3n82anUNeyCQsc8qQrazDRA0 mT7gDwlHNWRpxUYuVcYRf1NC5vahumEYYmFu1ZE/DBa/QPEUYjngjLZfE6nWiVGH Vx6NIval211WPdCjyMt+M0N2GY+TC/Bw/gzYolzq+fVGPBFbi0W7hep5Aj9oYk05 7L1Y74HzHRPdaIMrBLvV0q7w2IBU/udjYrpaLGNKWV/3Dc+kwj/EkvR98hnBTthn PK0gYlHF4lQueeahe7bpR/tCxoNedRRS2rVualkgwq0ZtYcH3kCZeyntuIg9CpEz JHSa1ZcryvuR4q/GYmXhQRB0+geuAJkL/8fVU1wZT5b/LVNalx6HQwEwnfkz3004 kMTHetmUQlEu+SNoGX3EToj6jBiF+6+xqwaS8jp8ivYkWuger63aOOToOEvEeF3q RTAEs3YaMLtJNry/k2OdgLhSOFtzjdugYc6NxTg9NJMkIx0TrJk= =7o5I -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 29 additions(+), 0 deletions(-)
M default.nix -> default.nix
diff --git a/default.nix b/default.nix
index 9df56bee174d90860f8cff64bbcc85631af309f6..178f1f42deabe30af0c980545f945315d74e336a 100644
--- a/default.nix
+++ b/default.nix
@@ -12,6 +12,7 @@   modules = import ./modules; # NixOS modules
   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 {};
I pkgs/git-age/default.nix
diff --git a/pkgs/git-age/default.nix b/pkgs/git-age/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..e897755fd1995101aed032cbe0e547f7830cba70
--- /dev/null
+++ b/pkgs/git-age/default.nix
@@ -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;
+  };
+}