Commit 52aa41e5 authored by Alexis Hildebrandt's avatar Alexis Hildebrandt
Browse files

mycorrhiza: modernize

by using finalAttrs and removing with lib from meta
parent a838ee7a
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -6,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=";
  };

@@ -28,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 = with platforms; linux ++ darwin;
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ chekoopa ];
    platforms = lib.platforms.unix;
    mainProgram = "mycorrhiza";
  };
}
})