nixpkgs/pkgs/tools/misc/ttygif/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
774 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, makeWrapper, imagemagick, xorg }:
2019-10-12 01:51:51 +02:00
stdenv.mkDerivation rec {
pname = "ttygif";
2022-01-13 19:43:23 +01:00
version = "1.6.0";
2019-10-12 01:51:51 +02:00
src = fetchFromGitHub {
owner = "icholy";
repo = pname;
rev = version;
2022-01-13 19:43:23 +01:00
sha256 = "sha256-GsMeVR2wNivQguZ6B/0v39Td9VGHg+m3RtAG9DYkNmU=";
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
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/ttygif \
2021-01-15 10:19:50 +01:00
--prefix PATH : ${lib.makeBinPath [ imagemagick xorg.xwd ]}
'';
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 ];
};
}