2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libsixel
|
2024-09-19 14:19:46 +00:00
|
|
|
, stdenv
|
|
|
|
, nix-update-script
|
2024-02-07 01:22:34 +00:00
|
|
|
, testers
|
|
|
|
, presenterm
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "presenterm";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.8.0";
|
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}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-sMhowTXPzZcIOV4Ny9NzvgXGsZSPBJGDg9JvuoZoSUc=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsixel
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-2aHJnGSuP0TEBMxF1zljbEyk1g6ECTpnByyH8jaj78s=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
# Crashes at runtime on darwin with:
|
|
|
|
# Library not loaded: .../out/lib/libsixel.1.dylib
|
2024-09-26 11:04:55 +00:00
|
|
|
buildFeatures = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "sixel" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = presenterm;
|
|
|
|
command = "presenterm --version";
|
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ mikaelfangel ];
|
2023-10-19 13:55:26 +00:00
|
|
|
mainProgram = "presenterm";
|
|
|
|
};
|
|
|
|
}
|