2020-02-28 04:12:22 +01:00
|
|
|
{ rustPlatform, fetchFromGitLab, lib, makeWrapper, gst_all_1, libsixel }:
|
2020-01-07 11:00:08 +01:00
|
|
|
|
2018-05-05 20:15:59 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "termplay";
|
2020-01-07 11:00:08 +01:00
|
|
|
version = "2.0.6";
|
2018-05-05 20:15:59 +02:00
|
|
|
|
2020-02-28 04:12:22 +01:00
|
|
|
src = fetchFromGitLab {
|
2018-05-05 20:15:59 +02:00
|
|
|
owner = "jD91mZM2";
|
|
|
|
repo = "termplay";
|
2020-01-07 11:00:08 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p";
|
2018-05-05 20:15:59 +02:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "08ip6x4kink244majlk595yh551c2ap3ry58wly994mh8wf6ifwb";
|
2018-05-05 20:15:59 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-ugly
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
libsixel
|
|
|
|
];
|
|
|
|
|
2021-11-16 00:54:12 +01:00
|
|
|
buildFeatures = [ "bin" ];
|
|
|
|
|
2018-05-05 20:15:59 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/termplay --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Play an image/video in your terminal";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://jd91mzm2.github.io/termplay/";
|
2018-05-05 20:15:59 +02:00
|
|
|
license = licenses.mit;
|
2021-06-12 23:13:40 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-05-05 20:15:59 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|