nixpkgs/pkgs/development/tools/marksman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.6 KiB
Nix
Raw Normal View History

2022-09-29 09:38:42 +02:00
{ lib
, fetchFromGitHub
, buildDotnetModule
, dotnetCorePackages
, marksman
2023-01-11 08:15:36 +01:00
, testers
2022-09-29 09:38:42 +02:00
}:
buildDotnetModule rec {
pname = "marksman";
2023-12-31 13:18:38 +01:00
version = "2023-12-09";
2022-09-29 09:38:42 +02:00
src = fetchFromGitHub {
owner = "artempyanykh";
repo = "marksman";
rev = version;
2023-12-31 13:18:38 +01:00
sha256 = "sha256-g+Y4BZh5r4FQJe1q79hxj7WZe7z9346+5cB7tgJ5+Wo=";
2022-09-29 09:38:42 +02:00
};
projectFile = "Marksman/Marksman.fsproj";
dotnetBuildFlags = [ "-p:VersionString=${version}" ];
2022-09-29 09:38:42 +02:00
doCheck = true;
testProjectFile = "Tests/Tests.fsproj";
nugetDeps = ./deps.nix;
2023-12-31 13:18:38 +01:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
2022-09-29 09:38:42 +02:00
postInstall = ''
install -m 644 -D -t "$out/share/doc/${pname}" LICENSE
'';
passthru = {
updateScript = ./update.sh;
2023-01-11 08:15:36 +01:00
tests.version = testers.testVersion {
2022-09-29 09:38:42 +02:00
package = marksman;
command = "marksman --version";
};
};
meta = with lib; {
description = "Language Server for Markdown";
longDescription = ''
Marksman is a program that integrates with your editor
to assist you in writing and maintaining your Markdown documents.
Using LSP protocol it provides completion, goto definition,
find references, rename refactoring, diagnostics, and more.
In addition to regular Markdown, it also supports wiki-link-style
references that enable Zettelkasten-like note taking.
'';
homepage = "https://github.com/artempyanykh/marksman";
license = licenses.mit;
2023-11-02 20:59:05 +01:00
maintainers = with maintainers; [ stasjok plusgut ];
2022-09-29 09:38:42 +02:00
platforms = dotnet-sdk.meta.platforms;
mainProgram = "marksman";
2022-09-29 09:38:42 +02:00
};
}