1{
2 lib,
3 stdenv,
4 slop,
5 ffmpeg,
6 fetchFromGitHub,
7 makeWrapper,
8}:
9
10stdenv.mkDerivation {
11 pname = "capture-unstable";
12 version = "2019-03-10";
13
14 src = fetchFromGitHub {
15 owner = "buhman";
16 repo = "capture";
17 rev = "80dd9e7195aad5c132badef610f19509f3935b24";
18 sha256 = "0zyyg4mvrny7cc2xgvfip97b6yc75ka5ni39rwls93971jbk83d6";
19 };
20
21 nativeBuildInputs = [ makeWrapper ];
22
23 installPhase = ''
24 install -Dm755 src/capture.sh $out/bin/capture
25
26 patchShebangs $out/bin/capture
27 wrapProgram $out/bin/capture \
28 --prefix PATH : '${
29 lib.makeBinPath [
30 slop
31 ffmpeg
32 ]
33 }'
34 '';
35
36 meta = with lib; {
37 description = "No bullshit screen capture tool";
38 homepage = "https://github.com/buhman/capture";
39 maintainers = [ maintainers.ar1a ];
40 license = licenses.gpl3Plus;
41 mainProgram = "capture";
42 };
43}