diff options
author | Aria Edmonds <aria@ar1as.space> | 2019-01-20 12:31:41 +1100 |
---|---|---|
committer | Aria Edmonds <aria@ar1as.space> | 2019-01-21 06:52:20 +1100 |
commit | 2fa2d55bed1593e434f39ebc4d91fc0c82d46551 (patch) | |
tree | 04f3a92c1a4717aaaeb9849465fa74c8ee806ff8 /pkgs/tools/misc/capture/default.nix | |
parent | 6662708cd090f072666b340356403e4391eb06d0 (diff) |
capture: init at 1.0
Diffstat (limited to 'pkgs/tools/misc/capture/default.nix')
-rw-r--r-- | pkgs/tools/misc/capture/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/capture/default.nix b/pkgs/tools/misc/capture/default.nix new file mode 100644 index 0000000000000..49c238b0bd0fd --- /dev/null +++ b/pkgs/tools/misc/capture/default.nix @@ -0,0 +1,31 @@ +{ stdenv, pkgs, slop, ffmpeg, fetchFromGitHub, makeWrapper}: + +stdenv.mkDerivation rec { + name = "capture-${version}"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "buhman"; + repo = "capture"; + rev = "4be986f17462b8d520559429c74da6bf3a436259"; + sha256 = "172y06vs993x5v78zwl81xma1gkvjq1ad9rvmf3a217fyxsz4nhh"; + }; + + buildInputs = [ makeWrapper ]; + + patches = [ ./0001-eval-fix.patch ./0002-sane-defaults.patch ]; + + installPhase = '' + install -Dm755 src/capture.sh $out/bin/capture + + patchShebangs $out/bin/capture + wrapProgram $out/bin/capture \ + --prefix PATH : '${stdenv.lib.makeBinPath [ slop ffmpeg ]}' + ''; + + meta = with stdenv.lib; { + description = "A no bullshit screen capture tool"; + homepage = "https://github.com/buhman/capture"; + maintainers = [ maintainers.ar1a ]; + }; +} |