tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
termplay: init at 2.0.4
jD91mZM2
7 years ago
2d08df41
e450d9fb
+40
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
termplay
default.nix
top-level
all-packages.nix
+38
pkgs/tools/misc/termplay/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ rustPlatform, fetchFromGitHub, lib, makeWrapper, gst_all_1, libsixel }:
2
+
rustPlatform.buildRustPackage rec {
3
+
name = "termplay-${version}";
4
+
version = "2.0.4";
5
+
6
+
src = fetchFromGitHub {
7
+
owner = "jD91mZM2";
8
+
repo = "termplay";
9
+
rev = version;
10
+
11
+
sha256 = "0qgx9xmi8n3sq5n5m6gai777sllw9hyki2kwsj2k4h1ykibzq9r0";
12
+
};
13
+
14
+
cargoBuildFlags = ["--features" "bin"];
15
+
cargoSha256 = "1ghvp4n6mvckamvn3hk672wh29jlrwmhrd4hv3mh98li1x9ssbmf";
16
+
17
+
nativeBuildInputs = [ makeWrapper ];
18
+
buildInputs = [
19
+
gst_all_1.gstreamer
20
+
gst_all_1.gst-plugins-base
21
+
gst_all_1.gst-plugins-good
22
+
gst_all_1.gst-plugins-ugly
23
+
gst_all_1.gst-plugins-bad
24
+
libsixel
25
+
];
26
+
27
+
postInstall = ''
28
+
wrapProgram $out/bin/termplay --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
29
+
'';
30
+
31
+
meta = with lib; {
32
+
description = "Play an image/video in your terminal";
33
+
homepage = https://jd91mzm2.github.io/termplay/;
34
+
license = licenses.mit;
35
+
maintainers = with maintainers; [ jD91mZM2 ];
36
+
platforms = platforms.unix;
37
+
};
38
+
}
+2
pkgs/top-level/all-packages.nix
···
5143
5144
telepresence = callPackage ../tools/networking/telepresence { };
5145
0
0
5146
tewisay = callPackage ../tools/misc/tewisay { };
5147
5148
texmacs = if stdenv.isDarwin
···
5143
5144
telepresence = callPackage ../tools/networking/telepresence { };
5145
5146
+
termplay = callPackage ../tools/misc/termplay { };
5147
+
5148
tewisay = callPackage ../tools/misc/tewisay { };
5149
5150
texmacs = if stdenv.isDarwin