1 { lib, stdenv, slop, ffmpeg, fetchFromGitHub, makeWrapper}:
4 pname = "capture-unstable";
5 version = "2019-03-10";
7 src = fetchFromGitHub {
10 rev = "80dd9e7195aad5c132badef610f19509f3935b24";
11 sha256 = "0zyyg4mvrny7cc2xgvfip97b6yc75ka5ni39rwls93971jbk83d6";
14 nativeBuildInputs = [ makeWrapper ];
17 install -Dm755 src/capture.sh $out/bin/capture
19 patchShebangs $out/bin/capture
20 wrapProgram $out/bin/capture \
21 --prefix PATH : '${lib.makeBinPath [ slop ffmpeg ]}'
25 description = "No bullshit screen capture tool";
26 homepage = "https://github.com/buhman/capture";
27 maintainers = [ maintainers.ar1a ];
28 license = licenses.gpl3Plus;
29 mainProgram = "capture";