2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, imagemagick, xorg }:
|
2019-10-12 01:51:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ttygif";
|
2020-05-10 21:58:03 +02:00
|
|
|
version = "1.5.0";
|
2019-10-12 01:51:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "icholy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-10 21:58:03 +02:00
|
|
|
sha256 = "1w9c3h6hik2gglwsw8ww63piy66i4zqr3273wh5rc9r2awiwh643";
|
2019-10-12 01:51:51 +02:00
|
|
|
};
|
|
|
|
|
2020-05-10 23:20:00 +02:00
|
|
|
makeFlags = [ "CC:=$(CC)" "PREFIX=${placeholder "out"}" ];
|
2019-10-12 01:51:51 +02:00
|
|
|
|
2021-01-02 21:39:38 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ttygif \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ imagemagick xorg.xwd ]}
|
2021-01-02 21:39:38 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-12 01:51:51 +02:00
|
|
|
homepage = "https://github.com/icholy/ttygif";
|
|
|
|
description = "Convert terminal recordings to animated gifs";
|
2020-05-10 23:20:00 +02:00
|
|
|
platforms = platforms.unix;
|
2019-10-12 01:51:51 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
|
|
};
|
|
|
|
}
|