miro: init at 0.6.2 (#452790)

This commit is contained in:
Sandro
2025-11-04 00:06:48 +00:00
committed by GitHub
+60
View File
@@ -0,0 +1,60 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
fontconfig,
wayland,
libxkbcommon,
libglvnd,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "miro";
version = "0.6.2";
src = fetchFromGitHub {
owner = "vincent-uden";
repo = "miro";
tag = "v${finalAttrs.version}";
hash = "sha256-znrbAufYM+YIPm0oSZ8i4vHHrhlgSQWMzKfqdF8qaow=";
};
cargoHash = "sha256-VP2RUKTQM2AkXY/KgN0tjWXF7SQ24geAvxEQJitH23I=";
nativeBuildInputs = [
rustPlatform.bindgenHook
pkg-config
];
buildInputs = [
wayland
fontconfig
libxkbcommon
libglvnd
];
RUSTFLAGS = map (a: "-C link-arg=${a}") [
"-Wl,--push-state,--no-as-needed"
"-lEGL"
"-lwayland-client"
"-lxkbcommon"
"-Wl,--pop-state"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Native PDF viewer (Wayland/X11) with configurable keybindings";
homepage = "https://github.com/vincent-uden/miro";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "miro-pdf";
};
})