Merge pull request #108260 from charles-dyfis-net/ttygif-missing-deps

ttygif: add missing dependencies on xwd, imagemagick
This commit is contained in:
Sandro 2021-01-04 04:43:49 +01:00 committed by GitHub
commit 00dc9ff545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, makeWrapper, imagemagick, xorg }:
stdenv.mkDerivation rec {
pname = "ttygif";
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
makeFlags = [ "CC:=$(CC)" "PREFIX=${placeholder "out"}" ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/ttygif \
--prefix PATH : ${stdenv.lib.makeBinPath [ imagemagick xorg.xwd ]}
'';
meta = with stdenv.lib; {
homepage = "https://github.com/icholy/ttygif";
description = "Convert terminal recordings to animated gifs";