summary refs log tree commit diff
path: root/pkgs/applications/video/screenkey/default.nix
blob: 7e2bc3a3ec0cfdead1cd31a452a8486bfa9e0e94 (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
53
54
55
56
57
58
{ lib
, substituteAll
, buildPythonApplication
, fetchFromGitHub
, distutils_extra
, setuptools-git
, intltool
, pygtk
, libX11
, libXtst
, wrapGAppsHook
, gnome3
}:
buildPythonApplication rec {
  pname = "screenkey";
  version = "0.9";

  src = fetchFromGitHub {
    owner = "wavexx";
    repo = "screenkey";
    rev = "screenkey-${version}";
    sha256 = "14g7fiv9n7m03djwz1pp5034pffi87ssvss9bc1q8vq0ksn23vrw";
  };

  patches = [
    (substituteAll {
      src = ./paths.patch;
      inherit libX11 libXtst;
    })
  ];

  nativeBuildInputs = [
    distutils_extra
    setuptools-git
    intltool

    wrapGAppsHook
  ];

  buildInputs = [
    gnome3.adwaita-icon-theme
  ];

  propagatedBuildInputs = [
    pygtk
  ];

  # screenkey does not have any tests
  doCheck = false;

  meta = with lib; {
    homepage = "https://www.thregr.org/~wavexx/software/screenkey/";
    description = "A screencast tool to display your keys inspired by Screenflick";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.rasendubi ];
  };
}