1 { lib, stdenv, fetchFromGitHub, makeWrapper, imagemagick, xorg }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-GsMeVR2wNivQguZ6B/0v39Td9VGHg+m3RtAG9DYkNmU=";
14 makeFlags = [ "CC:=$(CC)" "PREFIX=${placeholder "out"}" ];
16 nativeBuildInputs = [ makeWrapper ];
18 wrapProgram $out/bin/ttygif \
19 --prefix PATH : ${lib.makeBinPath [ imagemagick xorg.xwd ]}
23 homepage = "https://github.com/icholy/ttygif";
24 description = "Convert terminal recordings to animated gifs";
25 platforms = platforms.unix;
26 license = licenses.mit;
27 maintainers = with maintainers; [ moaxcp ];
28 mainProgram = "ttygif";