Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
932 B
Nix
44 lines
932 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "allmark";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andreaskoch";
|
|
repo = "allmark";
|
|
tag = "v${version}";
|
|
hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
|
|
};
|
|
|
|
vendorHash = "sha256-dEmI+COrWhXdqtTkLIjyiUapHtjezCEuY9jLDqxkBBg=";
|
|
|
|
deleteVendor = true;
|
|
|
|
patches = [
|
|
./0001-Add-go.mod-go.sum.patch # Add go.mod, go.sum, remove vendor
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{cli,allmark}
|
|
'';
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Cross-platform markdown web server";
|
|
homepage = "https://github.com/andreaskoch/allmark";
|
|
changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
luftmensch-luftmensch
|
|
urandom
|
|
];
|
|
mainProgram = "allmark";
|
|
};
|
|
}
|