nixpkgs/pkgs/by-name/al/allmark/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
795 B
Nix
Raw Normal View History

2024-06-08 09:55:00 +01:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
2024-06-08 09:55:00 +01:00
buildGoModule rec {
pname = "allmark";
version = "0.10.0";
src = fetchFromGitHub {
owner = "andreaskoch";
repo = pname;
rev = "v${version}";
hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
};
2024-06-08 09:55:00 +01:00
postPatch = ''
go mod init github.com/andreaskoch/allmark
'';
vendorHash = null;
postInstall = ''
mv $out/bin/{cli,allmark}
'';
2024-06-08 09:55:00 +01:00
meta = {
description = "Cross-platform markdown web server";
homepage = "https://github.com/andreaskoch/allmark";
changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
2024-06-08 09:55:00 +01:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
luftmensch-luftmensch
urandom
];
2023-11-23 21:09:35 +00:00
mainProgram = "allmark";
};
}