lol
at 22.05-pre 39 lines 1.0 kB view raw
1{ rustPlatform, fetchFromGitLab, lib, makeWrapper, gst_all_1, libsixel }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "termplay"; 5 version = "2.0.6"; 6 7 src = fetchFromGitLab { 8 owner = "jD91mZM2"; 9 repo = "termplay"; 10 rev = "v${version}"; 11 sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p"; 12 }; 13 14 cargoSha256 = "08ip6x4kink244majlk595yh551c2ap3ry58wly994mh8wf6ifwb"; 15 16 nativeBuildInputs = [ makeWrapper ]; 17 buildInputs = [ 18 gst_all_1.gstreamer 19 gst_all_1.gst-plugins-base 20 gst_all_1.gst-plugins-good 21 gst_all_1.gst-plugins-ugly 22 gst_all_1.gst-plugins-bad 23 libsixel 24 ]; 25 26 buildFeatures = [ "bin" ]; 27 28 postInstall = '' 29 wrapProgram $out/bin/termplay --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" 30 ''; 31 32 meta = with lib; { 33 description = "Play an image/video in your terminal"; 34 homepage = "https://jd91mzm2.github.io/termplay/"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ ]; 37 platforms = platforms.unix; 38 }; 39}