Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e6d555817d7e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d8e3ce750f9f
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on May 6, 2018

  1. termplay: init at 2.0.4

    jD91mZM2 committed May 6, 2018

    Unverified

    The committer email address is not verified.
    Copy the full SHA
    2d08df4 View commit details
  2. Merge pull request #40009 from jD91mZM2/termplay

    termplay: init at 2.0.4
    jtojnar authored May 6, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d8e3ce7 View commit details
Showing with 40 additions and 0 deletions.
  1. +38 −0 pkgs/tools/misc/termplay/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
38 changes: 38 additions & 0 deletions pkgs/tools/misc/termplay/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ 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 = "1ghvp4n6mvckamvn3hk672wh29jlrwmhrd4hv3mh98li1x9ssbmf";

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -5139,6 +5139,8 @@ with pkgs;

telepresence = callPackage ../tools/networking/telepresence { };

termplay = callPackage ../tools/misc/termplay { };

tewisay = callPackage ../tools/misc/tewisay { };

texmacs = if stdenv.isDarwin