mdserve: init at 0.4.0 (#447058)
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "mdserve";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jfernandez";
|
||||
repo = "mdserve";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-OCdWoQzmCvKo8EfLAczBud1FfY3vRMk7mivjhsqE840=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-7J+a3Yt5sLtZb6xfWLS/eZXZtZRmeXmTqUcPKXqtOLY=";
|
||||
|
||||
__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 ];
|
||||
mainProgram = "mdserve";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user