2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libsixel
|
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "presenterm";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.4.1";
|
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}";
|
|
|
|
hash = "sha256-OHp/qbuaZ7uVydKGnSiBR5KQGdf8rWQQWRHrka+PI1M=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsixel
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoHash = "sha256-ymSTloz7sPAtMZN1uDgLs89gMcU+UTsMVc6y5UHt7no=";
|
|
|
|
|
|
|
|
buildFeatures = [ "sixel" ];
|
|
|
|
|
|
|
|
# Skip test that currently doesn't work
|
|
|
|
checkFlags = [ "--skip=execute::test::shell_code_execution" ];
|
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";
|
|
|
|
};
|
|
|
|
}
|