mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
Changelog: https://github.com/sbarex/QLMarkdown/releases/tag/1.5.4 Diff: https://github.com/sbarex/QLMarkdown/compare/1.5.2...1.5.4
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "qlmarkdown";
|
|
version = "1.5.4";
|
|
|
|
strictDeps = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/sbarex/QLMarkdown/releases/download/${finalAttrs.version}/QLMarkdown.zip";
|
|
hash = "sha256-Ve/SuGss/z4A4c/EjhlP0yPrUfbPF9XaspFZad+fW8k=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/Applications" "$out/bin"
|
|
cp -R "QLMarkdown.app" "$out/Applications/"
|
|
|
|
ln -s \
|
|
"$out/Applications/QLMarkdown.app/Contents/Resources/qlmarkdown_cli" \
|
|
"$out/bin/qlmarkdown_cli"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Quick Look extension for Markdown previews on macOS";
|
|
homepage = "https://github.com/sbarex/QLMarkdown";
|
|
changelog = "https://github.com/sbarex/QLMarkdown/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ kinnrai ];
|
|
mainProgram = "qlmarkdown_cli";
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
})
|