2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, ffmpeg_3, imagemagick, dzen2, xorg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "xscast-unstable";
|
|
|
|
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" \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg_3 dzen2 xorg.xwininfo xorg.xinput xorg.xmodmap imagemagick ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/KeyboardFire/xscast";
|
|
|
|
license = licenses.mit;
|
|
|
|
description = "Screencasts of windows with list of keystrokes overlayed";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|