Files
nixpkgs/pkgs/by-name/md/mdserve/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

46 lines
1.1 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mdserve";
version = "0.4.1";
src = fetchFromGitHub {
owner = "jfernandez";
repo = "mdserve";
tag = "v${finalAttrs.version}";
hash = "sha256-C9D6tr88EROo2rzu7t9HAeyKAxFOCZyN+sl7QpFgmI8=";
};
cargoHash = "sha256-RFCGb7wjO8/RsOlsABem5dy+ZfheZNihktqUCX3oDZo=";
__darwinAllowLocalNetworking = true;
nativeInstallCheckInputs = [ versionCheckHook ];
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# times out on darwin during nixpkgs-review
"--skip test_file_modification_updates_via_websocket"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Fast markdown preview server with live reload and theme support";
homepage = "https://github.com/jfernandez/mdserve";
changelog = "https://github.com/jfernandez/mdserve/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
vinnymeller
matthiasbeyer
];
mainProgram = "mdserve";
};
})