about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-04 04:43:49 +0100
committerGitHub <noreply@github.com>2021-01-04 04:43:49 +0100
commit00dc9ff545e6bebbaa1617329078c9653548978a (patch)
tree89219a138dd52601ef371de37de7d3fee4016c77 /pkgs
parent9bf170109d73e9c5bd2451c1291848bb01dd78eb (diff)
parent0d758e68a2362f343448af770cc2c42f409945ee (diff)
Merge pull request #108260 from charles-dyfis-net/ttygif-missing-deps
ttygif: add missing dependencies on xwd, imagemagick
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/ttygif/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/ttygif/default.nix b/pkgs/tools/misc/ttygif/default.nix
index 5a14dade01b84..dd74f5effed67 100644
--- a/pkgs/tools/misc/ttygif/default.nix
+++ b/pkgs/tools/misc/ttygif/default.nix
@@ -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";