markdown-oxide: use fetchCargoVendor; use finalAttrs; etc (#388100)

This commit is contained in:
Franz Pletz
2025-03-09 00:51:14 +01:00
committed by GitHub
2 changed files with 6 additions and 1788 deletions
File diff suppressed because it is too large Load Diff
+6 -9
View File
@@ -3,23 +3,19 @@
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "markdown-oxide";
version = "0.25.1";
src = fetchFromGitHub {
owner = "Feel-ix-343";
repo = "markdown-oxide";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-hgXqJwmIpXJNIl67Jjbg5MR4PlwB5XbqnFo+rNLoqbE=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"tower-lsp-0.20.0" = "sha256-QRP1LpyI52KyvVfbBG95LMpmI8St1cgf781v3oyC3S4=";
};
};
useFetchCargoVendor = true;
cargoHash = "sha256-o4wn6L5PVZM0SN8kA34NOp6ogTSoCv2xiN4vfj+ptc8=";
meta = {
description = "Markdown LSP server inspired by Obsidian";
@@ -28,7 +24,8 @@ rustPlatform.buildRustPackage rec {
maintainers = with lib.maintainers; [
linsui
jukremer
HeitorAugustoLN
];
mainProgram = "markdown-oxide";
};
}
})