nezha-theme-admin: 1.6.2 -> 1.6.4 (#377943)
[NixPkgs.git] / pkgs / by-name / al / allmark / package.nix
blob6f11a067b15c3371cac81a7ff0cbfa3df69e1f3a
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "allmark";
9   version = "0.10.0";
11   src = fetchFromGitHub {
12     owner = "andreaskoch";
13     repo = "allmark";
14     rev = "v${version}";
15     hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
16   };
18   vendorHash = "sha256-dEmI+COrWhXdqtTkLIjyiUapHtjezCEuY9jLDqxkBBg=";
20   deleteVendor = true;
22   patches = [
23     ./0001-Add-go.mod-go.sum.patch # Add go.mod, go.sum, remove vendor
24   ];
26   postInstall = ''
27     mv $out/bin/{cli,allmark}
28   '';
30   __darwinAllowLocalNetworking = true;
32   meta = {
33     description = "Cross-platform markdown web server";
34     homepage = "https://github.com/andreaskoch/allmark";
35     changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
36     license = lib.licenses.bsd3;
37     maintainers = with lib.maintainers; [
38       luftmensch-luftmensch
39       urandom
40     ];
41     mainProgram = "allmark";
42   };