screenkey: init at 0.9

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