nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 40 lines 970 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, perl 2, ffmpeg-full, imagemagick, xdpyinfo, xprop, xrectsel, xwininfo 3}: 4 5stdenv.mkDerivation rec { 6 pname = "ffcast"; 7 version = "2.5.0"; 8 9 src = fetchFromGitHub { 10 owner = "ropery"; 11 repo = "FFcast"; 12 rev = version; 13 sha256 = "047y32bixhc8ksr98vwpgd0k1xxgsv2vs0n3kc2xdac4krc9454h"; 14 }; 15 16 nativeBuildInputs = [ autoreconfHook makeWrapper perl /*for pod2man*/ ]; 17 18 configureFlags = [ "--disable-xrectsel" ]; 19 20 postInstall = let 21 binPath = lib.makeBinPath [ 22 ffmpeg-full 23 imagemagick 24 xdpyinfo 25 xprop 26 xrectsel 27 xwininfo 28 ]; 29 in '' 30 wrapProgram $out/bin/ffcast --prefix PATH : ${binPath} 31 ''; 32 33 meta = with lib; { 34 description = "Run commands on rectangular screen regions"; 35 homepage = "https://github.com/ropery/FFcast"; 36 license = licenses.gpl3Plus; 37 maintainers = with maintainers; [ sikmir ]; 38 platforms = platforms.linux; 39 }; 40}