Skip to content

Commit

Permalink
Merge pull request #330868 from GaetanLepage/presenterm
Browse files Browse the repository at this point in the history
presenterm: 0.7.0 -> 0.8.0
  • Loading branch information
GaetanLepage authored Jul 31, 2024
2 parents 2078266 + 67cb415 commit 6f2cc88
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions pkgs/by-name/pr/presenterm/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,47 @@
, fetchFromGitHub
, rustPlatform
, libsixel
, stdenv
, nix-update-script
, testers
, presenterm
, stdenv
}:

rustPlatform.buildRustPackage rec {
pname = "presenterm";
version = "0.7.0";
version = "0.8.0";

src = fetchFromGitHub {
owner = "mfontanini";
repo = "presenterm";
rev = "refs/tags/v${version}";
hash = "sha256-I5L+Wygj9ApQu/5fm55okwNbyxOiF++7BDl765MLnjY=";
hash = "sha256-sMhowTXPzZcIOV4Ny9NzvgXGsZSPBJGDg9JvuoZoSUc=";
};

buildInputs = [
libsixel
];

cargoHash = "sha256-w1uXCH8Ybf78EPTIKrhPlPHAnNBp1iiBpFJHY98IPWY=";
cargoHash = "sha256-2aHJnGSuP0TEBMxF1zljbEyk1g6ECTpnByyH8jaj78s=";

# Crashes at runtime on darwin with:
# Library not loaded: .../out/lib/libsixel.1.dylib
buildFeatures = lib.optionals (!stdenv.isDarwin) [ "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";
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = presenterm;
command = "presenterm --version";
};
};

meta = with lib; {
meta = {
description = "Terminal based slideshow tool";
changelog = "https://github.com/mfontanini/presenterm/releases/tag/v${version}";
homepage = "https://github.com/mfontanini/presenterm";
license = licenses.bsd2;
maintainers = with maintainers; [ mikaelfangel ];
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ mikaelfangel ];
mainProgram = "presenterm";
};
}

0 comments on commit 6f2cc88

Please sign in to comment.