diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-05-06 15:34:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-06 15:34:36 +0200 |
commit | d8e3ce750f9f851e0f96c521ae3eb03a3d22f253 (patch) | |
tree | 5cc104a0aec6b3205bbb0cfb423f650c71d9b040 /pkgs/tools/misc | |
parent | e6d555817d7e8356b7d7108c3d846e5f8f88463a (diff) | |
parent | 2d08df417fa9008440081a6d2d1cd6db9d854ff9 (diff) | |
download | nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar.gz nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar.bz2 nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar.lz nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar.xz nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.tar.zst nixlib-d8e3ce750f9f851e0f96c521ae3eb03a3d22f253.zip |
Merge pull request #40009 from jD91mZM2/termplay
termplay: init at 2.0.4
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/termplay/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/misc/termplay/default.nix b/pkgs/tools/misc/termplay/default.nix new file mode 100644 index 000000000000..5771ec6aff19 --- /dev/null +++ b/pkgs/tools/misc/termplay/default.nix @@ -0,0 +1,38 @@ +{ rustPlatform, fetchFromGitHub, lib, makeWrapper, gst_all_1, libsixel }: +rustPlatform.buildRustPackage rec { + name = "termplay-${version}"; + version = "2.0.4"; + + src = fetchFromGitHub { + owner = "jD91mZM2"; + repo = "termplay"; + rev = version; + + sha256 = "0qgx9xmi8n3sq5n5m6gai777sllw9hyki2kwsj2k4h1ykibzq9r0"; + }; + + cargoBuildFlags = ["--features" "bin"]; + cargoSha256 = "1ghvp4n6mvckamvn3hk672wh29jlrwmhrd4hv3mh98li1x9ssbmf"; + + 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 + ]; + + 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"; + homepage = https://jd91mzm2.github.io/termplay/; + license = licenses.mit; + maintainers = with maintainers; [ jD91mZM2 ]; + platforms = platforms.unix; + }; +} |