depot/third_party/nixpkgs/pkgs/tools/misc/termplay/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
1 KiB
Nix

{ rustPlatform, fetchFromGitLab, lib, makeWrapper, gst_all_1, libsixel }:
rustPlatform.buildRustPackage rec {
pname = "termplay";
version = "2.0.6";
src = fetchFromGitLab {
owner = "jD91mZM2";
repo = "termplay";
rev = "v${version}";
sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p";
};
cargoBuildFlags = ["--features" "bin"];
cargoSha256 = "0nxm2k8dx6nxyghvpw44wqfd1n65947v2wqxxvy641hin4d7xzma";
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;
};
}