about summary refs log tree commit diff
path: root/pkgs/tools/graphics/escrotum/default.nix
blob: 16f33251dd6abc408f4f1c10f0eec874c201ab38 (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
{ lib, fetchFromGitHub, buildPythonApplication
, pygtk
, numpy ? null
}:

buildPythonApplication {
  name = "escrotum-2019-06-10";

  src = fetchFromGitHub {
    owner  = "Roger";
    repo   = "escrotum";
    rev    = "f6c300315cb4402e37f16b56aad2d206e24c5281";
    sha256 = "0x7za74lkwn3v6j9j04ifgdwdlx9akh1izkw7vkkzj9ag9qjrzb0";
  };

  propagatedBuildInputs = [ pygtk numpy ];

  outputs = [ "out" "man" ];

  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;
  };
}