mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, libsixel
|
|
, testers
|
|
, presenterm
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "presenterm";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mfontanini";
|
|
repo = "presenterm";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-I5L+Wygj9ApQu/5fm55okwNbyxOiF++7BDl765MLnjY=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libsixel
|
|
];
|
|
|
|
cargoHash = "sha256-w1uXCH8Ybf78EPTIKrhPlPHAnNBp1iiBpFJHY98IPWY=";
|
|
|
|
# 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";
|
|
};
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
mainProgram = "presenterm";
|
|
};
|
|
}
|