blob: c2e5a7ec9a719e5a1ee5620c4d551f8e9f5da56f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib, python3Packages, fetchFromGitHub
, ffmpeg-full
, gtk3
, pango
, gobject-introspection
, wrapGAppsHook
}:
with python3Packages; buildPythonApplication {
pname = "escrotum";
version = "unstable-2020-12-07";
src = fetchFromGitHub {
owner = "Roger";
repo = "escrotum";
rev = "a41d0f11bb6af4f08e724b8ccddf8513d905c0d1";
sha256 = "sha256-z0AyTbOEE60j/883X17mxgoaVlryNtn0dfEB0C18G2s=";
};
buildInputs = [
gtk3
pango
];
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook
];
propagatedBuildInputs = [ pygobject3 xcffib pycairo numpy ];
# Cannot find pango without strictDeps = false
strictDeps = false;
outputs = [ "out" "man" ];
makeWrapperArgs = ["--prefix PATH : ${lib.makeBinPath [ ffmpeg-full ]}"];
postInstall = ''
mkdir -p $man/share/man/man1
cp man/escrotum.1 $man/share/man/man1/
'';
meta = with lib; {
homepage = "https://github.com/Roger/escrotum";
description = "Linux screen capture using pygtk, inspired by scrot";
platforms = platforms.linux;
maintainers = with maintainers; [ rasendubi ];
license = licenses.gpl3;
mainProgram = "escrotum";
};
}
|