mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ rustPlatform, fetchFromGitHub, lib, makeWrapper, gst_all_1, libsixel }:
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "termplay-${version}";
|
|
version = "2.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jD91mZM2";
|
|
repo = "termplay";
|
|
rev = version;
|
|
|
|
sha256 = "0qgx9xmi8n3sq5n5m6gai777sllw9hyki2kwsj2k4h1ykibzq9r0";
|
|
};
|
|
|
|
cargoBuildFlags = ["--features" "bin"];
|
|
cargoSha256 = "06vf2lhdsp7vsln8007zd1xcswn5akk9gnhh7582x1siiijksmn7";
|
|
|
|
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;
|
|
};
|
|
}
|