nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 45 lines 945 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 ffmpeg, 7 vlc, 8 jq, 9}: 10 11stdenv.mkDerivation { 12 pname = "gopro-tool"; 13 version = "0-unstable-2024-04-18"; 14 15 src = fetchFromGitHub { 16 owner = "juchem"; 17 repo = "gopro-tool"; 18 rev = "a678f0ea65e24dca9b8d848b245bd2d487d3c8ca"; 19 sha256 = "0sh3s38m17pci24x4kdlmlhn0gwgm28aaa6p7qs16wysk0q0h6wz"; 20 }; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 24 installPhase = '' 25 mkdir -p $out/bin 26 cp $src/gopro-tool $out/bin/gopro-tool 27 chmod +x $out/bin/gopro-tool 28 29 wrapProgram $out/bin/gopro-tool \ 30 --prefix PATH : ${ 31 lib.makeBinPath [ 32 ffmpeg 33 vlc 34 jq 35 ] 36 } 37 ''; 38 39 meta = { 40 description = "Tool to control GoPro webcam mode in Linux (requires v4l2loopback kernel module and a firewall rule)"; 41 license = lib.licenses.bsd3; 42 maintainers = with lib.maintainers; [ ZMon3y ]; 43 platforms = lib.platforms.linux; 44 }; 45}