ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / es / escrotum / package.nix
blob6d4f80521596f049b037e0fa8eab106109f4719e
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5   ffmpeg-full,
6   gtk3,
7   pango,
8   gobject-introspection,
9   wrapGAppsHook3,
12 with python3Packages;
13 buildPythonApplication {
14   pname = "escrotum";
15   version = "unstable-2020-12-07";
17   src = fetchFromGitHub {
18     owner = "Roger";
19     repo = "escrotum";
20     rev = "a41d0f11bb6af4f08e724b8ccddf8513d905c0d1";
21     sha256 = "sha256-z0AyTbOEE60j/883X17mxgoaVlryNtn0dfEB0C18G2s=";
22   };
24   buildInputs = [
25     gtk3
26     pango
27   ];
29   nativeBuildInputs = [
30     gobject-introspection
31     wrapGAppsHook3
32   ];
34   propagatedBuildInputs = [
35     pygobject3
36     xcffib
37     pycairo
38     numpy
39   ];
41   # Cannot find pango without strictDeps = false
42   strictDeps = false;
44   outputs = [
45     "out"
46     "man"
47   ];
49   makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg-full ]}" ];
51   postInstall = ''
52     mkdir -p $man/share/man/man1
53     cp man/escrotum.1 $man/share/man/man1/
54   '';
56   meta = with lib; {
57     homepage = "https://github.com/Roger/escrotum";
58     description = "Linux screen capture using pygtk, inspired by scrot";
59     platforms = platforms.linux;
60     maintainers = with maintainers; [ rasendubi ];
61     license = licenses.gpl3;
62     mainProgram = "escrotum";
63   };