lol

ffcast: fix cross-compilation

+19 -9
+19 -9
pkgs/tools/X11/ffcast/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, perl, libX11 }: 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, perl 2 + , ffmpeg, imagemagick, xdpyinfo, xprop, xrectsel, xwininfo 3 + }: 2 4 3 5 stdenv.mkDerivation rec { 4 6 pname = "ffcast"; 5 7 version = "2.5.0"; 6 8 7 9 src = fetchFromGitHub { 8 - owner = "lolilolicon"; 10 + owner = "ropery"; 9 11 repo = "FFcast"; 10 12 rev = version; 11 13 sha256 = "047y32bixhc8ksr98vwpgd0k1xxgsv2vs0n3kc2xdac4krc9454h"; 12 14 }; 13 15 14 - nativeBuildInputs = [ autoreconfHook ]; 15 - buildInputs = [ perl libX11 ]; 16 + nativeBuildInputs = [ autoreconfHook makeWrapper perl /*for pod2man*/ ]; 16 17 17 18 configureFlags = [ "--disable-xrectsel" ]; 18 19 19 - postBuild = '' 20 - make install 20 + postInstall = let 21 + binPath = lib.makeBinPath [ 22 + ffmpeg 23 + imagemagick 24 + xdpyinfo 25 + xprop 26 + xrectsel 27 + xwininfo 28 + ]; 29 + in '' 30 + wrapProgram $out/bin/ffcast --prefix PATH : ${binPath} 21 31 ''; 22 32 23 33 meta = with lib; { 24 34 description = "Run commands on rectangular screen regions"; 25 - homepage = "https://github.com/lolilolicon/FFcast"; 26 - license = licenses.gpl3; 27 - maintainers = [ maintainers.guyonvarch ]; 35 + homepage = "https://github.com/ropery/FFcast"; 36 + license = licenses.gpl3Plus; 37 + maintainers = with maintainers; [ sikmir ]; 28 38 platforms = platforms.linux; 29 39 }; 30 40 }