summary refs log tree commit diff stats
path: root/overlays/htmlformat
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 23:21:11 +0200
committerAlan Pearce2024-04-29 20:57:07 +0200
commit75a4e09f1d241f7882a86d7f9c4aa1804a981209 (patch)
treef56e407f99f9bbf696dd229e79f56d3664461a15 /overlays/htmlformat
parent21398bece441d9afaa8e74539d993c3e976ebce0 (diff)
downloadnixfiles-75a4e09f1d241f7882a86d7f9c4aa1804a981209.tar.lz
nixfiles-75a4e09f1d241f7882a86d7f9c4aa1804a981209.tar.zst
nixfiles-75a4e09f1d241f7882a86d7f9c4aa1804a981209.zip
move overlays to root folder
Diffstat (limited to 'overlays/htmlformat')
-rw-r--r--overlays/htmlformat/default.nix3
-rw-r--r--overlays/htmlformat/htmlformat.nix28
2 files changed, 31 insertions, 0 deletions
diff --git a/overlays/htmlformat/default.nix b/overlays/htmlformat/default.nix
new file mode 100644
index 00000000..93292c76
--- /dev/null
+++ b/overlays/htmlformat/default.nix
@@ -0,0 +1,3 @@
+self: super: {
+  htmlformat = super.callPackage ./htmlformat.nix { };
+}
diff --git a/overlays/htmlformat/htmlformat.nix b/overlays/htmlformat/htmlformat.nix
new file mode 100644
index 00000000..aa124ee5
--- /dev/null
+++ b/overlays/htmlformat/htmlformat.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";
+  };
+}