tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
screenkey: init at 0.9
Alexey Shmalko
8 years ago
d1fbbb09
cf3ada04
+84
3 changed files
expand all
collapse all
unified
split
pkgs
applications
video
screenkey
default.nix
paths.patch
top-level
all-packages.nix
+60
pkgs/applications/video/screenkey/default.nix
···
1
1
+
{ lib
2
2
+
, substituteAll
3
3
+
, buildPythonApplication
4
4
+
, fetchFromGitHub
5
5
+
, distutils_extra
6
6
+
, setuptools-git
7
7
+
, intltool
8
8
+
, pygtk
9
9
+
, libX11
10
10
+
, libXtst
11
11
+
, wrapGAppsHook
12
12
+
, defaultIconTheme
13
13
+
, hicolor_icon_theme
14
14
+
}:
15
15
+
buildPythonApplication rec {
16
16
+
pname = "screenkey";
17
17
+
version = "0.9";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "wavexx";
21
21
+
repo = "screenkey";
22
22
+
rev = "screenkey-${version}";
23
23
+
sha256 = "14g7fiv9n7m03djwz1pp5034pffi87ssvss9bc1q8vq0ksn23vrw";
24
24
+
};
25
25
+
26
26
+
patches = [
27
27
+
(substituteAll {
28
28
+
src = ./paths.patch;
29
29
+
inherit libX11 libXtst;
30
30
+
})
31
31
+
];
32
32
+
33
33
+
nativeBuildInputs = [
34
34
+
distutils_extra
35
35
+
setuptools-git
36
36
+
intltool
37
37
+
38
38
+
wrapGAppsHook
39
39
+
];
40
40
+
41
41
+
buildInputs = [
42
42
+
defaultIconTheme
43
43
+
hicolor_icon_theme
44
44
+
];
45
45
+
46
46
+
propagatedBuildInputs = [
47
47
+
pygtk
48
48
+
];
49
49
+
50
50
+
# screenkey does not have any tests
51
51
+
doCheck = false;
52
52
+
53
53
+
meta = with lib; {
54
54
+
homepage = https://www.thregr.org/~wavexx/software/screenkey/;
55
55
+
description = "A screencast tool to display your keys inspired by Screenflick";
56
56
+
license = licenses.gpl3Plus;
57
57
+
platforms = platforms.linux;
58
58
+
maintainers = [ maintainers.rasendubi ];
59
59
+
};
60
60
+
}
+20
pkgs/applications/video/screenkey/paths.patch
···
1
1
+
--- a/Screenkey/xlib.py
2
2
+
+++ b/Screenkey/xlib.py
3
3
+
@@ -6,7 +6,7 @@
4
4
+
from ctypes import *
5
5
+
6
6
+
## base X11
7
7
+
-libX11 = CDLL('libX11.so.6')
8
8
+
+libX11 = CDLL('@libX11@/lib/libX11.so.6')
9
9
+
10
10
+
# types
11
11
+
Atom = c_ulong
12
12
+
@@ -278,7 +278,7 @@
13
13
+
14
14
+
15
15
+
## record extensions
16
16
+
-libXtst = CDLL('libXtst.so.6')
17
17
+
+libXtst = CDLL('@libXtst@/lib/libXtst.so.6')
18
18
+
19
19
+
# types
20
20
+
XPointer = String
+4
pkgs/top-level/all-packages.nix
···
4514
4514
quazip = quazip_qt4;
4515
4515
};
4516
4516
4517
4517
+
screenkey = python2Packages.callPackage ../applications/video/screenkey {
4518
4518
+
inherit (gnome3) defaultIconTheme;
4519
4519
+
};
4520
4520
+
4517
4521
quazip_qt4 = libsForQt5.quazip.override {
4518
4522
qtbase = qt4; qmake = qmake4Hook;
4519
4523
};