mkcast: drop and replace with xscast (#40026)

The package has been declared as unmaintained, `xscast` is the way to
go: https://github.com/KeyboardFire/mkcast#obsolete

Replacement for `mkcast` (https://github.com/KeyboardFire/mkcast#obsolete)
This commit is contained in:
Maximilian Bosch 2018-05-06 12:27:31 +02:00 committed by Jörg Thalheim
parent 560e91f1a7
commit f57986597f
3 changed files with 37 additions and 39 deletions

View File

@ -1,37 +0,0 @@
{ stdenv, fetchFromGitHub, wmctrl, pythonPackages, byzanz
, xdpyinfo, makeWrapper, gtk2, xorg, gnome3 }:
stdenv.mkDerivation rec {
name = "mkcast-2015-03-13";
src = fetchFromGitHub {
owner = "KeyboardFire";
repo = "mkcast";
rev = "cac22cb6c6f8ec2006339698af5e9199331759e0";
sha256 = "15wp3n3z8gw7kjdxs4ahda17n844awhxsqbql5ipsdhqfxah2d8p";
};
buildInputs = with pythonPackages; [ makeWrapper pygtk gtk2 xlib ];
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
for f in $out/bin/*; do #*/
wrapProgram $f --prefix PATH : "${stdenv.lib.makeBinPath [ xdpyinfo wmctrl byzanz gnome3.gnome-terminal ]}:$out/bin"
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;
maintainers = with maintainers; [ domenkozar pSub ];
};
}

View File

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, makeWrapper, ffmpeg, imagemagick, dzen2, xorg }:
stdenv.mkDerivation rec {
name = "xscast-unstable-${version}";
version = "2016-07-26";
src = fetchFromGitHub {
owner = "KeyboardFire";
repo = "xscast";
rev = "9e6fd3c28d3f5ae630619f6dbccaf1f6ca594b21";
sha256 = "0br27bq9bpglfdpv63h827bipgvhlh10liyhmhcxls4227kagz72";
};
buildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 xscast.sh $out/bin/xscast
install -Dm644 xscast.1 $out/share/man/man1/xscast.1
patchShebangs $out/bin
wrapProgram "$out/bin/xscast" \
--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg dzen2 xorg.xwininfo xorg.xinput xorg.xmodmap imagemagick ]}
runHook postInstall
'';
meta = with stdenv.lib; {
homepage = https://github.com/KeyboardFire/xscast;
license = licenses.mit;
description = "Screencasts of windows with list of keystrokes overlayed";
maintainers = with maintainers; [ ma27 ];
};
}

View File

@ -3334,8 +3334,6 @@ with pkgs;
motion = callPackage ../applications/video/motion { };
mkcast = callPackage ../applications/video/mkcast { };
mtail = callPackage ../servers/monitoring/mtail { };
multitail = callPackage ../tools/misc/multitail { };
@ -5576,6 +5574,8 @@ with pkgs;
xprintidle-ng = callPackage ../tools/X11/xprintidle-ng {};
xscast = callPackage ../applications/video/xscast { };
xsettingsd = callPackage ../tools/X11/xsettingsd { };
xsensors = callPackage ../os-specific/linux/xsensors { };