Merge pull request #284139 from GaetanLepage/presenterm

presenterm: 0.4.1 -> 0.5.0
This commit is contained in:
Nick Cao 2024-01-28 21:21:33 -05:00 committed by GitHub
commit db424625ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,30 +2,38 @@
, fetchFromGitHub
, rustPlatform
, libsixel
, testers
, presenterm
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "presenterm";
version = "0.4.1";
version = "0.5.0";
src = fetchFromGitHub {
owner = "mfontanini";
repo = "presenterm";
rev = "refs/tags/v${version}";
hash = "sha256-OHp/qbuaZ7uVydKGnSiBR5KQGdf8rWQQWRHrka+PI1M=";
hash = "sha256-VAcK02dbtuTGn+lPu1vb/wAkroHuHqsU2KYHBiP2Org=";
};
buildInputs = [
libsixel
];
cargoHash = "sha256-ymSTloz7sPAtMZN1uDgLs89gMcU+UTsMVc6y5UHt7no=";
cargoHash = "sha256-bufFiyqRsn4eG57bKn42p5cyX+Z7oiz/USZvg9YOvHA=";
buildFeatures = [ "sixel" ];
# Skip test that currently doesn't work
checkFlags = [ "--skip=execute::test::shell_code_execution" ];
passthru.tests.version = testers.testVersion {
package = presenterm;
command = "presenterm --version";
};
meta = with lib; {
description = "A terminal based slideshow tool";
changelog = "https://github.com/mfontanini/presenterm/releases/tag/v${version}";
@ -33,5 +41,8 @@ rustPlatform.buildRustPackage rec {
license = licenses.bsd2;
maintainers = with maintainers; [ mikaelfangel ];
mainProgram = "presenterm";
# Crashes at runtime on darwin with:
# Library not loaded: .../out/lib/libsixel.1.dylib
broken = stdenv.isDarwin;
};
}