summaryrefslogtreecommitdiffstats
path: root/pkgs/servers/allmark/default.nix
blob: 1e5b58dc6b19e5a9625b4b776954cc6f6ab8778d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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://github.com/andreaskoch/allmark";
    changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ urandom ];
  };
}