2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, perl
|
2023-03-04 12:14:45 +00:00
|
|
|
, ffmpeg-full, imagemagick, xdpyinfo, xprop, xrectsel, xwininfo
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ffcast";
|
|
|
|
version = "2.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-14 12:49:19 +00:00
|
|
|
owner = "ropery";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "FFcast";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "047y32bixhc8ksr98vwpgd0k1xxgsv2vs0n3kc2xdac4krc9454h";
|
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper perl /*for pod2man*/ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-xrectsel" ];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
postInstall = let
|
|
|
|
binPath = lib.makeBinPath [
|
2023-03-04 12:14:45 +00:00
|
|
|
ffmpeg-full
|
2022-07-14 12:49:19 +00:00
|
|
|
imagemagick
|
|
|
|
xdpyinfo
|
|
|
|
xprop
|
|
|
|
xrectsel
|
|
|
|
xwininfo
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
wrapProgram $out/bin/ffcast --prefix PATH : ${binPath}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Run commands on rectangular screen regions";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/ropery/FFcast";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|