Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

capture: init at 1.0

+65
+10
pkgs/tools/misc/capture/0001-eval-fix.patch
··· 1 + diff --git a/src/capture.sh b/src/capture.sh 2 + index a32b018..82d1f15 100755 3 + --- a/src/capture.sh 4 + +++ b/src/capture.sh 5 + @@ -103,4 +103,4 @@ capture () { 6 + 7 + 8 + # remove this line if you want to source this file instead 9 + -eval " ${0##*/}" "$@" 10 + +capture "$@"
+22
pkgs/tools/misc/capture/0002-sane-defaults.patch
··· 1 + diff --git a/src/capture.sh b/src/capture.sh 2 + index a32b018..42f3936 100755 3 + --- a/src/capture.sh 4 + +++ b/src/capture.sh 5 + @@ -9,7 +9,7 @@ set -e 6 + # 7 + 8 + scale="-1:-1" 9 + -fps="15" 10 + +fps="30" 11 + raw_video="-vf fps=$fps -c:v utvideo -f nut" 12 + raw_video_container=".nut" 13 + 14 + @@ -18,7 +18,7 @@ raw_video_container=".nut" 15 + # https://stackoverflow.com/questions/41372045/vp9-encoding-limited-to-4-threads 16 + webm_video="-pix_fmt yuv420p -c:v libvpx-vp9 -crf 25 -b:v 0 -f webm -tile-columns 6 -frame-parallel 1 -threads 8" 17 + 18 + -tmpdir="/var/tmp" 19 + +tmpdir="/tmp" 20 + 21 + 22 + # capture_raw ./foo.nut
+31
pkgs/tools/misc/capture/default.nix
··· 1 + { stdenv, pkgs, slop, ffmpeg, fetchFromGitHub, makeWrapper}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "capture-${version}"; 5 + version = "1.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "buhman"; 9 + repo = "capture"; 10 + rev = "4be986f17462b8d520559429c74da6bf3a436259"; 11 + sha256 = "172y06vs993x5v78zwl81xma1gkvjq1ad9rvmf3a217fyxsz4nhh"; 12 + }; 13 + 14 + buildInputs = [ makeWrapper ]; 15 + 16 + patches = [ ./0001-eval-fix.patch ./0002-sane-defaults.patch ]; 17 + 18 + installPhase = '' 19 + install -Dm755 src/capture.sh $out/bin/capture 20 + 21 + patchShebangs $out/bin/capture 22 + wrapProgram $out/bin/capture \ 23 + --prefix PATH : '${stdenv.lib.makeBinPath [ slop ffmpeg ]}' 24 + ''; 25 + 26 + meta = with stdenv.lib; { 27 + description = "A no bullshit screen capture tool"; 28 + homepage = "https://github.com/buhman/capture"; 29 + maintainers = [ maintainers.ar1a ]; 30 + }; 31 + }
+2
pkgs/top-level/all-packages.nix
··· 18713 18713 18714 18714 pb_cli = callPackage ../tools/misc/pb_cli {}; 18715 18715 18716 + capture = callPackage ../tools/misc/capture {}; 18717 + 18716 18718 pbrt = callPackage ../applications/graphics/pbrt { }; 18717 18719 18718 18720 pcsxr = callPackage ../misc/emulators/pcsxr {