ttygif: add missing dependencies on xwd, imagemagick

This commit is contained in:
Charles Duffy 2021-01-02 14:39:38 -06:00
parent a460b167f4
commit 0d758e68a2
No known key found for this signature in database
GPG Key ID: 643F86964B84FB01

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, makeWrapper, imagemagick, xorg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ttygif"; pname = "ttygif";
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
makeFlags = [ "CC:=$(CC)" "PREFIX=${placeholder "out"}" ]; 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; { meta = with stdenv.lib; {
homepage = "https://github.com/icholy/ttygif"; homepage = "https://github.com/icholy/ttygif";
description = "Convert terminal recordings to animated gifs"; description = "Convert terminal recordings to animated gifs";