about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/xscast/default.nix
blob: f9e6a3d6521f34109a1fe309d8ce16dcd6f4b4f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchFromGitHub, makeWrapper, ffmpeg_3, imagemagick, dzen2, xorg }:

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" \
      --prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg_3 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 ];
  };
}