biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / termplay / default.nix
blobdccf9d38fe6a2571b1935b102cebbf346188cf86
1 { rustPlatform, fetchFromGitLab, lib, makeWrapper, gst_all_1, libsixel }:
3 rustPlatform.buildRustPackage rec {
4   pname = "termplay";
5   version = "2.0.6";
7   src = fetchFromGitLab {
8     owner = "jD91mZM2";
9     repo = "termplay";
10     rev = "v${version}";
11     sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p";
12   };
14   cargoHash = "sha256-i7toHEewkpQ85aj4PK4SLJQCfUllUqkqIWLaOEk3NyI=";
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   ];
26   buildFeatures = [ "bin" ];
28   postInstall = ''
29     wrapProgram $out/bin/termplay --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
30   '';
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 = [ ];
37     platforms = platforms.unix;
38     mainProgram = "termplay";
39   };