2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2022-12-28 21:21:41 +00:00
|
|
|
pname = "allmark";
|
|
|
|
version = "0.10.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andreaskoch";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
|
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
go mod init github.com/andreaskoch/allmark
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorHash = null;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{cli,allmark}
|
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
|
|
|
description = "Cross-platform markdown web server";
|
2023-01-11 07:51:40 +00:00
|
|
|
homepage = "https://github.com/andreaskoch/allmark";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
luftmensch-luftmensch
|
|
|
|
urandom
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "allmark";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
}
|