Files
nixpkgs/pkgs/by-name/ma/marksman/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.6 KiB
Nix

{
lib,
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
marksman,
testers,
}:
buildDotnetModule rec {
pname = "marksman";
version = "2024-12-18";
src = fetchFromGitHub {
owner = "artempyanykh";
repo = "marksman";
rev = version;
sha256 = "sha256-2OisUZHmf7k8vLkBGJG1HXNxaXmRF64x//bDK57S9to=";
};
projectFile = "Marksman/Marksman.fsproj";
dotnetBuildFlags = [ "-p:VersionString=${version}" ];
__darwinAllowLocalNetworking = true;
doCheck = true;
testProjectFile = "Tests/Tests.fsproj";
nugetDeps = ./deps.json;
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx-bin;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
postInstall = ''
install -m 644 -D -t "$out/share/doc/${pname}" LICENSE
'';
passthru = {
updateScript = ./update.sh;
tests.version = testers.testVersion {
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
plusgut
];
platforms = dotnet-sdk.meta.platforms;
mainProgram = "marksman";
};
}