2024-10-09 16:51:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
libsixel,
|
|
|
|
stdenv,
|
|
|
|
nix-update-script,
|
|
|
|
versionCheckHook,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "presenterm";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "0.9.0";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mfontanini";
|
|
|
|
repo = "presenterm";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-BFL0Y6v1v15WLSvA5i+l47bR9+1qDHPWSMMuEaLdhPY=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsixel
|
|
|
|
];
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
cargoHash = "sha256-IC72l1xbH/AdCHdcgY8ODv6+YZUmT5NYVisP9oIMpGA=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
# Crashes at runtime on darwin with:
|
|
|
|
# Library not loaded: .../out/lib/libsixel.1.dylib
|
2024-09-26 11:04:55 +00:00
|
|
|
buildFeatures = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "sixel" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
checkFlags = [
|
|
|
|
# failed to load .tmpEeeeaQ: No such file or directory (os error 2)
|
|
|
|
"--skip=external_snippet"
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
nativeInstallCheckInputs = [
|
|
|
|
versionCheckHook
|
|
|
|
];
|
|
|
|
versionCheckProgramArg = [ "--version" ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Terminal based slideshow tool";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/mfontanini/presenterm/releases/tag/v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/mfontanini/presenterm";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ mikaelfangel ];
|
2023-10-19 13:55:26 +00:00
|
|
|
mainProgram = "presenterm";
|
|
|
|
};
|
|
|
|
}
|