1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/termplay/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ rustPlatform, fetchFromGitLab, lib, makeWrapper, gst_all_1, libsixel }:
2020-01-07 10:00:08 +00:00
2018-05-05 19:15:59 +01:00
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "termplay";
2020-01-07 10:00:08 +00:00
version = "2.0.6";
2018-05-05 19:15:59 +01:00
src = fetchFromGitLab {
2018-05-05 19:15:59 +01:00
owner = "jD91mZM2";
repo = "termplay";
2020-01-07 10:00:08 +00:00
rev = "v${version}";
sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p";
2018-05-05 19:15:59 +01:00
};
cargoBuildFlags = ["--features" "bin"];
cargoSha256 = "0nxm2k8dx6nxyghvpw44wqfd1n65947v2wqxxvy641hin4d7xzma";
2018-05-05 19:15:59 +01: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
];
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/";
2018-05-05 19:15:59 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jD91mZM2 ];
platforms = platforms.unix;
};
}