2021-12-06 07:26:23 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2023-10-30 00:17:45 +00:00
|
|
|
ffmpeg-full,
|
2021-12-06 07:26:23 +00:00
|
|
|
gtk3,
|
|
|
|
pango,
|
|
|
|
gobject-introspection,
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3,
|
2017-10-08 11:18:45 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-06 07:26:23 +00:00
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication {
|
2021-08-12 18:41:54 +00:00
|
|
|
pname = "escrotum";
|
2021-12-06 07:26:23 +00:00
|
|
|
version = "unstable-2020-12-07";
|
2017-10-08 11:18:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Roger";
|
|
|
|
repo = "escrotum";
|
2021-12-06 07:26:23 +00:00
|
|
|
rev = "a41d0f11bb6af4f08e724b8ccddf8513d905c0d1";
|
|
|
|
sha256 = "sha256-z0AyTbOEE60j/883X17mxgoaVlryNtn0dfEB0C18G2s=";
|
2017-10-08 11:18:45 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 07:26:23 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2021-12-06 07:26:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygobject3
|
|
|
|
xcffib
|
|
|
|
pycairo
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
# Cannot find pango without strictDeps = false
|
|
|
|
strictDeps = false;
|
2017-10-08 11:18:45 +00:00
|
|
|
|
2019-08-29 09:20:01 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
|
|
|
|
2023-10-30 00:17:45 +00:00
|
|
|
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg-full ]}" ];
|
|
|
|
|
2019-08-29 09:20:01 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $man/share/man/man1
|
|
|
|
cp man/escrotum.1 $man/share/man/man1/
|
|
|
|
'';
|
|
|
|
|
2017-10-08 11:18:45 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Roger/escrotum";
|
2017-10-08 11:18:45 +00:00
|
|
|
description = "Linux screen capture using pygtk, inspired by scrot";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ rasendubi ];
|
|
|
|
license = licenses.gpl3;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "escrotum";
|
2017-10-08 11:18:45 +00:00
|
|
|
};
|
|
|
|
}
|