lol
1{ buildGoPackage, fetchFromGitHub, lib }:
2
3buildGoPackage rec {
4 pname = "allmark";
5 version = "0.10.0";
6
7 src = fetchFromGitHub {
8 owner = "andreaskoch";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
12 };
13
14 goPackagePath = "github.com/andreaskoch/allmark";
15
16 postInstall = ''
17 mv $out/bin/{cli,allmark}
18 '';
19
20 meta = with lib; {
21 description = "A cross-platform markdown web server";
22 homepage = "https://github.com/andreaskoch/allmark";
23 changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ urandom ];
26 };
27}