mycorrhiza: Add darwin platform; modernize (#405826)

This commit is contained in:
Robert Scott
2025-05-12 23:24:25 +01:00
committed by GitHub
+7 -8
View File
@@ -1,5 +1,4 @@
{
stdenv,
lib,
fetchFromGitHub,
buildGoModule,
@@ -7,14 +6,14 @@
git,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "mycorrhiza";
version = "1.15.1";
src = fetchFromGitHub {
owner = "bouncepaw";
repo = "mycorrhiza";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "sha256-Cgf2YtAatfKWxhe4xAqNRB4ktsGs3ONi5XqbjcZwzTw=";
};
@@ -29,12 +28,12 @@ buildGoModule rec {
--prefix PATH : ${lib.makeBinPath [ git ]}
'';
meta = with lib; {
meta = {
description = "Filesystem and git-based wiki engine written in Go using mycomarkup as its primary markup language";
homepage = "https://github.com/bouncepaw/mycorrhiza";
license = licenses.agpl3Only;
maintainers = with maintainers; [ chekoopa ];
platforms = platforms.linux;
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ chekoopa ];
platforms = lib.platforms.unix;
mainProgram = "mycorrhiza";
};
}
})