about summary refs log tree commit diff
path: root/pkgs/servers/allmark
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2022-12-26 01:40:17 +0000
committerColin Arnott <colin@urandom.co.uk>2022-12-27 09:40:43 +0000
commit28354ec5d1d97494982d1b2405b50911173c3aaf (patch)
tree2a8fc7c8292e9fbd0360cff550f770625d663866 /pkgs/servers/allmark
parent2901df4b7528b8c490fdd97f08cf61722d0372cd (diff)
allmark: init at 0.10.0
We are using buildGoPackage, because upstream is not a module: see
andreaskoch/allmark#36.

Fixes #206256
Diffstat (limited to 'pkgs/servers/allmark')
-rw-r--r--pkgs/servers/allmark/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/allmark/default.nix b/pkgs/servers/allmark/default.nix
new file mode 100644
index 0000000000000..439e064b2aff7
--- /dev/null
+++ b/pkgs/servers/allmark/default.nix
@@ -0,0 +1,27 @@
+{ buildGoPackage, fetchFromGitHub, lib }:
+
+buildGoPackage rec {
+  pname = "allmark";
+  version = "0.10.0";
+
+  src = fetchFromGitHub {
+    owner = "andreaskoch";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
+  };
+
+  goPackagePath = "github.com/andreaskoch/allmark";
+
+  postInstall = ''
+    mv $out/bin/{cli,allmark}
+  '';
+
+  meta = with lib; {
+    description = "A cross-platform markdown web server";
+    homepage = "https://allmark.io";
+    changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ urandom ];
+  };
+}