Commit 4d2f19c1fdc5

Vincent Demeester <vincent@sbr.pm>
2026-01-05 14:53:54
gitmal: init at 1.0.2
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 997e750
Changed files (2)
pkgs
pkgs/by-name/gi/gitmal/package.nix
@@ -0,0 +1,40 @@
+{
+  lib,
+  buildGoModule,
+  fetchFromGitHub,
+}:
+
+buildGoModule rec {
+  pname = "gitmal";
+  version = "1.0.2";
+
+  src = fetchFromGitHub {
+    owner = "antonmedv";
+    repo = "gitmal";
+    rev = "v${version}";
+    hash = "sha256-RDXtB/fgyqL3b5e2BVK5si5pIcw/un3KJy1/cU0GMXo=";
+  };
+
+  vendorHash = "sha256-12kkN1rh9OWG8YIr9KyHtm1TFJQPUtSpD6ub8zokAhQ=";
+
+  ldflags = [
+    "-s"
+    "-w"
+  ];
+
+  meta = {
+    description = "Static site generator for Git repositories";
+    longDescription = ''
+      Gitmal generates static HTML pages for Git repositories with features including:
+      - File browsing with syntax highlighting
+      - Commit history visualization
+      - Markdown rendering
+      - Customizable themes
+    '';
+    homepage = "https://github.com/antonmedv/gitmal";
+    changelog = "https://github.com/antonmedv/gitmal/releases/tag/v${version}";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ vdemeester ];
+    mainProgram = "gitmal";
+  };
+}
pkgs/default.nix
@@ -41,6 +41,9 @@ in
 
   systemd-email = pkgs.callPackage ./systemd-email { };
 
+  # Packaged following nixpkgs by-name structure for upstream submission
+  gitmal = pkgs.callPackage ./by-name/gi/gitmal/package.nix { };
+
   bookmark-plus = compileEmacsFiles {
     name = "bookmark-plus";
     src = pkgs.fetchFromGitHub {