allmark: migrate to buildGoModule

This commit is contained in:
luftmensch-luftmensch 2024-06-08 10:55:00 +02:00
parent 589c316627
commit f27bd6fd0a
No known key found for this signature in database
2 changed files with 17 additions and 8 deletions

View File

@ -1,6 +1,10 @@
{ buildGoPackage, fetchFromGitHub, lib }:
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoPackage rec {
buildGoModule rec {
pname = "allmark";
version = "0.10.0";
@ -11,18 +15,25 @@ buildGoPackage rec {
hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU=";
};
goPackagePath = "github.com/andreaskoch/allmark";
postPatch = ''
go mod init github.com/andreaskoch/allmark
'';
vendorHash = null;
postInstall = ''
mv $out/bin/{cli,allmark}
'';
meta = with lib; {
meta = {
description = "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 ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
luftmensch-luftmensch
urandom
];
mainProgram = "allmark";
};
}

View File

@ -25374,8 +25374,6 @@ with pkgs;
alerta-server = callPackage ../servers/monitoring/alerta { };
allmark = callPackage ../servers/allmark { };
alps = callPackage ../servers/alps { };
anuko-time-tracker = callPackage ../servers/web-apps/anuko-time-tracker { };