Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
feat: templ Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmUDrJoACgkQuFOtpdp7 v3o99hAAiviu21+KOGEVKrP7jke9Tnwiu/zChV+JNDRRmTlgEZx55mGBWuBOtEs6 gxtfL6AJ97kc8cf1dm3RRz7ceO0TNsAnjmDNPXdFf98yJboorOcDEUfqdUP7ncQt WjLj2L8GAbaoIjhQflvoDkYu6/uCg/unaQK9IdUezmzUjwb60B/MvI92nKQdHy+v bePEUQqUenvsHS0jEJrGSy1aU0f2kCY/WGNjajaDmxq96oVrfYJcLOkpvwe5g2Fh +0WqULeqH5vtBwTH4Rweim5M4lFGqQlc5GjGm2QqVCnKiyByA+y3k2WliOJk9o8c gIWILaa3Y3b6it0PJJwV5RHzvODkLkDm2m5Xvq97ZfaSKD/EtNq2oSNcIcwlgEiW ErzZI7oxX2T63WVsHHlkyPMRMWuVZ60TBET7sxyPWH177e1G2Sqtyw7/lb3hJdj8 NgQVFoMmhNsAvva7g2N2+Jv/Mxk+FslxR99Mk8aMAtmwATBYVF9j7LrL46uFQhcr y3cg53Q1Cer1x7IFziLX4srbPxTUrd7+kqDZP+SlbRJvVkoY4LCOgTR7wGQaEGAK TCamfDw56lJmCNklLrl9nQ9KtPre/7s9mT0ajepeNVlLQDfqTlIOkcCezxFs4BHO X7NfhdwutBDs3fwr3qQSTwRpvpfxQOdijn8hXswj2hCzAFpn7uU= =Sssy -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
3 changed files, 34 additions(+), 0 deletions(-)
M README.md -> README.md
diff --git a/README.md b/README.md
index cb96e984afebe38e81687670dcb1b1578da5042c..068a77c97d23e3dc1e93bea31b8dcb03047f2bfe 100644
--- a/README.md
+++ b/README.md
@@ -10,5 +10,7 @@ |[opengist](https://github.com/thomiceli/opengist)|`1.4.2`|
 |[prospect-mail](https://github.com/julian-alarcon/prospect-mail)|`24e49ca0187884fa772a5928c56d7a9ed76441bd`|
 |[tclip](https://github.com/tailscale-dev/tclip)|`2c99626eb040cb9a54cdf4015c5d2bfd0a7be038`|
 # jolheiser NUR
+|Package|Version|
+# jolheiser NUR
 
 
M default.nix -> default.nix
diff --git a/default.nix b/default.nix
index 99b959f7770849c5d485fb8c12cc07ce539aec01..6d61e2b54ab09d7d5bd4063de563c766393d2b12 100644
--- a/default.nix
+++ b/default.nix
@@ -23,4 +23,6 @@   opengist = pkgs.callPackage ./pkgs/opengist {};
   prospect-mail = pkgs.callPackage ./pkgs/prospect-mail {};
   tclip = pkgs.callPackage ./pkgs/tclip {};
 # It should return a set of nix derivations
+# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
+# It should return a set of nix derivations
 # It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
I pkgs/templ/default.nix
diff --git a/pkgs/templ/default.nix b/pkgs/templ/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..e1376e0d8fc293b2a6d430e058efc78b04361779
--- /dev/null
+++ b/pkgs/templ/default.nix
@@ -0,0 +1,30 @@
+{
+  buildGoModule,
+  fetchFromGitHub,
+  lib,
+  ...
+}:
+buildGoModule rec {
+  pname = "templ";
+  version = "0.2.334";
+
+  src = fetchFromGitHub {
+    owner = "a-h";
+    repo = "templ";
+    rev = "v${version}";
+    sha256 = "sha256-liELstdoh0/KaOY8TnjCmTgp2CYWk9rZnMuK1RUb3OM=";
+  };
+
+  vendorSha256 = "sha256-7QYF8BvLpTcDstkLWxR0BgBP0NUlJ20IqW/nNqMSBn4=";
+
+  ldflags = ["-s" "-w" "-X=github.com/a-h/templ.Version=${version}"];
+
+  subPackages = ["cmd/templ"];
+
+  meta = with lib; {
+    description = "A language for writing HTML user interfaces in Go. ";
+    homepage = "https://github.com/a-h/templ";
+    license = licenses.mit;
+    mainProgram = "templ";
+  };
+}