2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libsixel
|
2024-02-07 01:22:34 +00:00
|
|
|
, testers
|
|
|
|
, presenterm
|
|
|
|
, stdenv
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "presenterm";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.7.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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-I5L+Wygj9ApQu/5fm55okwNbyxOiF++7BDl765MLnjY=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsixel
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-w1uXCH8Ybf78EPTIKrhPlPHAnNBp1iiBpFJHY98IPWY=";
|
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
|
|
|
|
buildFeatures = lib.optionals (!stdenv.isDarwin) [ "sixel" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
# Skip test that currently doesn't work
|
|
|
|
checkFlags = [ "--skip=execute::test::shell_code_execution" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = presenterm;
|
|
|
|
command = "presenterm --version";
|
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ mikaelfangel ];
|
|
|
|
mainProgram = "presenterm";
|
|
|
|
};
|
|
|
|
}
|