summary refs log tree commit diff stats
path: root/packages
diff options
context:
space:
mode:
authorAlan Pearce2024-04-18 14:17:43 +0200
committerAlan Pearce2024-04-18 14:17:43 +0200
commit0cee36a024bf30dd466b8245a2c4e085921a1981 (patch)
treee28b9f5ff1513d20570209d267c39c981ee88b0e /packages
parentf128790d36147be1db3834b12f0ece9a766c8e06 (diff)
downloadnixfiles-0cee36a024bf30dd466b8245a2c4e085921a1981.tar.lz
nixfiles-0cee36a024bf30dd466b8245a2c4e085921a1981.tar.zst
nixfiles-0cee36a024bf30dd466b8245a2c4e085921a1981.zip
dev/web: install custom htmlformat package from self
Diffstat (limited to 'packages')
-rw-r--r--packages/htmlformat/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/htmlformat/default.nix b/packages/htmlformat/default.nix
new file mode 100644
index 00000000..aa124ee5
--- /dev/null
+++ b/packages/htmlformat/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "htmlformat";
+  version = "unstable-2023-11-08";
+
+  src = fetchFromGitHub {
+    owner = "a-h";
+    repo = "htmlformat";
+    rev = "5bd994fe268e4d505a9793143fa85414c7d50887";
+    hash = "sha256-YSl9GsXhc0L2oKGZLwwjUtpe5W6ra6kk74zvQdsDCMU=";
+  };
+
+  vendorHash = "sha256-uVfh1pPhfj6AyQDqFd1EDWshuyDRvbMDZj3SN5tCS2w=";
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    description = "Htmlformat";
+    homepage = "https://github.com/a-h/htmlformat";
+    license = licenses.mit;
+    maintainers = with maintainers; [ alanpearce ];
+    mainProgram = "htmlformat";
+  };
+}