-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34167 from rasendubi/screenkey
screenkey: init at 0.9
- Loading branch information
Showing
4 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters