eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ rustPlatform, fetchFromGitHub, lib, makeWrapper, gst_all_1, libsixel }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "termplay";
|
|
version = "2.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jD91mZM2";
|
|
repo = "termplay";
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1w7hdqgqr1jgxid3k7f2j52wz31gv8bzr9rsm6xzp7nnihp6i45p";
|
|
};
|
|
|
|
cargoBuildFlags = ["--features" "bin"];
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "15i7qid91awlk74n823im1n6isqanf4vlcal90n1w9izyddzs9j0";
|
|
|
|
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;
|
|
};
|
|
}
|