2021-05-18 10:16:41 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, ffmpeg, imagemagick, dzen2, xorg }:
|
2018-05-06 11:27:31 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xscast-unstable";
|
2018-05-06 11:27:31 +01:00
|
|
|
version = "2016-07-26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KeyboardFire";
|
|
|
|
repo = "xscast";
|
|
|
|
rev = "9e6fd3c28d3f5ae630619f6dbccaf1f6ca594b21";
|
|
|
|
sha256 = "0br27bq9bpglfdpv63h827bipgvhlh10liyhmhcxls4227kagz72";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-05-06 11:27:31 +01:00
|
|
|
|
|
|
|
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-05-18 10:16:41 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg dzen2 xorg.xwininfo xorg.xinput xorg.xmodmap imagemagick ]}
|
2018-05-06 11:27:31 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/KeyboardFire/xscast";
|
2018-05-06 11:27:31 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Screencasts of windows with list of keystrokes overlayed";
|
2021-08-27 21:09:49 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-05-06 11:27:31 +01:00
|
|
|
};
|
|
|
|
}
|