nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 30 lines 796 B view raw
1{ lib, stdenv, slop, ffmpeg, fetchFromGitHub, makeWrapper}: 2 3stdenv.mkDerivation { 4 pname = "capture-unstable"; 5 version = "2019-03-10"; 6 7 src = fetchFromGitHub { 8 owner = "buhman"; 9 repo = "capture"; 10 rev = "80dd9e7195aad5c132badef610f19509f3935b24"; 11 sha256 = "0zyyg4mvrny7cc2xgvfip97b6yc75ka5ni39rwls93971jbk83d6"; 12 }; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 16 installPhase = '' 17 install -Dm755 src/capture.sh $out/bin/capture 18 19 patchShebangs $out/bin/capture 20 wrapProgram $out/bin/capture \ 21 --prefix PATH : '${lib.makeBinPath [ slop ffmpeg ]}' 22 ''; 23 24 meta = with lib; { 25 description = "A no bullshit screen capture tool"; 26 homepage = "https://github.com/buhman/capture"; 27 maintainers = [ maintainers.ar1a ]; 28 license = licenses.gpl3Plus; 29 }; 30}