2015-11-11 22:05:03 +03:00
|
|
|
{ stdenv, fetchFromGitHub, wmctrl, pythonPackages, byzanz
|
2016-09-12 00:24:51 +03:00
|
|
|
, xdpyinfo, makeWrapper, gtk2, xorg, gnome3 }:
|
2015-11-11 22:05:03 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mkcast-2015-03-13";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KeyboardFire";
|
|
|
|
repo = "mkcast";
|
|
|
|
rev = "cac22cb6c6f8ec2006339698af5e9199331759e0";
|
|
|
|
sha256 = "15wp3n3z8gw7kjdxs4ahda17n844awhxsqbql5ipsdhqfxah2d8p";
|
|
|
|
};
|
|
|
|
|
2016-09-12 00:24:51 +03:00
|
|
|
buildInputs = with pythonPackages; [ makeWrapper pygtk gtk2 xlib ];
|
2015-11-11 22:05:03 +03:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for f in $out/bin/*; do #*/
|
2016-08-23 01:06:51 +03:00
|
|
|
wrapProgram $f --prefix PATH : "${stdenv.lib.makeBinPath [ xdpyinfo wmctrl byzanz gnome3.gnome_terminal ]}:$out/bin"
|
2015-11-11 22:05:03 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
rm -r screenkey/.bzr
|
|
|
|
cp -R screenkey $out/bin
|
|
|
|
|
|
|
|
wrapProgram $out/bin/screenkey/screenkey \
|
|
|
|
--prefix PATH : "${xorg.xmodmap}/bin"\
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for creating GIF screencasts of a terminal, with key presses overlaid";
|
|
|
|
homepage = https://github.com/KeyboardFire/mkcast;
|
|
|
|
platforms = platforms.linux;
|
2016-05-17 14:57:28 +03:00
|
|
|
maintainers = with maintainers; [ domenkozar pSub ];
|
2015-11-11 22:05:03 +03:00
|
|
|
};
|
|
|
|
}
|