diff options
author | Alexey Shmalko <rasen.dubi@gmail.com> | 2018-01-22 22:18:26 +0200 |
---|---|---|
committer | Alexey Shmalko <rasen.dubi@gmail.com> | 2018-02-12 20:33:14 +0200 |
commit | d1fbbb09bf52f93fa552e3224c3efcd3546d4386 (patch) | |
tree | 457a3d6014f61c04c3cda2205598dc09b9135c20 /pkgs/applications/video/screenkey | |
parent | cf3ada04a77c2b355cf285f4342c8cc29e2eed48 (diff) | |
download | nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar.gz nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar.bz2 nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar.lz nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar.xz nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.tar.zst nixlib-d1fbbb09bf52f93fa552e3224c3efcd3546d4386.zip |
screenkey: init at 0.9
Diffstat (limited to 'pkgs/applications/video/screenkey')
-rw-r--r-- | pkgs/applications/video/screenkey/default.nix | 60 | ||||
-rw-r--r-- | pkgs/applications/video/screenkey/paths.patch | 20 |
2 files changed, 80 insertions, 0 deletions
diff --git a/pkgs/applications/video/screenkey/default.nix b/pkgs/applications/video/screenkey/default.nix new file mode 100644 index 000000000000..5638fad39e5d --- /dev/null +++ b/pkgs/applications/video/screenkey/default.nix @@ -0,0 +1,60 @@ +{ lib +, substituteAll +, buildPythonApplication +, fetchFromGitHub +, distutils_extra +, setuptools-git +, intltool +, pygtk +, libX11 +, libXtst +, wrapGAppsHook +, defaultIconTheme +, hicolor_icon_theme +}: +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 = [ + defaultIconTheme + hicolor_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 ]; + }; +} diff --git a/pkgs/applications/video/screenkey/paths.patch b/pkgs/applications/video/screenkey/paths.patch new file mode 100644 index 000000000000..7e5ed47fc19d --- /dev/null +++ b/pkgs/applications/video/screenkey/paths.patch @@ -0,0 +1,20 @@ +--- a/Screenkey/xlib.py ++++ b/Screenkey/xlib.py +@@ -6,7 +6,7 @@ + from ctypes import * + + ## base X11 +-libX11 = CDLL('libX11.so.6') ++libX11 = CDLL('@libX11@/lib/libX11.so.6') + + # types + Atom = c_ulong +@@ -278,7 +278,7 @@ + + + ## record extensions +-libXtst = CDLL('libXtst.so.6') ++libXtst = CDLL('@libXtst@/lib/libXtst.so.6') + + # types + XPointer = String \ No newline at end of file |