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

59 lines
1.5 KiB
Nix
Raw Normal View History

2022-09-29 07:38:42 +00:00
{ lib
, fetchFromGitHub
, buildDotnetModule
, dotnetCorePackages
, marksman
2023-01-11 07:15:36 +00:00
, testers
2022-09-29 07:38:42 +00:00
}:
buildDotnetModule rec {
pname = "marksman";
2023-03-08 13:11:56 +00:00
version = "2023-03-04";
2022-09-29 07:38:42 +00:00
src = fetchFromGitHub {
owner = "artempyanykh";
repo = "marksman";
rev = version;
2023-03-08 13:11:56 +00:00
sha256 = "sha256-jBZC2z1wtDMIssgRrKkZpl9NQ3XkRCcxo5eylwB2OBQ=";
2022-09-29 07:38:42 +00:00
};
projectFile = "Marksman/Marksman.fsproj";
dotnetBuildFlags = [ "-p:VersionString=${version}" ];
2022-09-29 07:38:42 +00:00
doCheck = true;
testProjectFile = "Tests/Tests.fsproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-runtime = dotnetCorePackages.runtime_6_0;
postInstall = ''
install -m 644 -D -t "$out/share/doc/${pname}" LICENSE
'';
passthru = {
updateScript = ./update.sh;
2023-01-11 07:15:36 +00:00
tests.version = testers.testVersion {
2022-09-29 07:38:42 +00: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;
maintainers = with maintainers; [ stasjok ];
platforms = dotnet-sdk.meta.platforms;
};
}