mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
67cb415b86
Diff: https://github.com/mfontanini/presenterm/compare/refs/tags/v0.7.0...v0.8.0 Changelog: https://github.com/mfontanini/presenterm/releases/tag/v0.8.0
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, libsixel
|
|
, stdenv
|
|
, nix-update-script
|
|
, testers
|
|
, presenterm
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "presenterm";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mfontanini";
|
|
repo = "presenterm";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sMhowTXPzZcIOV4Ny9NzvgXGsZSPBJGDg9JvuoZoSUc=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libsixel
|
|
];
|
|
|
|
cargoHash = "sha256-2aHJnGSuP0TEBMxF1zljbEyk1g6ECTpnByyH8jaj78s=";
|
|
|
|
# Crashes at runtime on darwin with:
|
|
# Library not loaded: .../out/lib/libsixel.1.dylib
|
|
buildFeatures = lib.optionals (!stdenv.isDarwin) [ "sixel" ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
package = presenterm;
|
|
command = "presenterm --version";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Terminal based slideshow tool";
|
|
changelog = "https://github.com/mfontanini/presenterm/releases/tag/v${version}";
|
|
homepage = "https://github.com/mfontanini/presenterm";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ mikaelfangel ];
|
|
mainProgram = "presenterm";
|
|
};
|
|
}
|