depot/third_party/nixpkgs/pkgs/servers/allmark/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
716 B
Nix

{ 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 ];
mainProgram = "allmark";
};
}