1 { lib, fetchFromGitHub, makeWrapper, python3Packages }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
10 rev = "bf3c93b4fe6efd42893db4e6588e5ef1c4909cfb";
11 sha256 = "0plcpb4ndzfsd5hj32m0g32swnhyph9sd759cdhhzmjvlq3j8q6p";
14 nativeBuildInputs = [ makeWrapper ];
15 propagatedBuildInputs = with python3Packages; [
26 cp ./example/config.py $out/share/example.py
27 cp ${./browser-emacs-bindings.py} $out/share/browser.py
29 makeWrapper $out/bin/xkeysnail $out/bin/xkeysnail-example \
30 --add-flags "-q" --add-flags "$out/share/example.py"
31 makeWrapper $out/bin/xkeysnail $out/bin/xkeysnail-browser \
32 --add-flags "-q" --add-flags "$out/share/browser.py"
36 description = "Yet another keyboard remapping tool for X environment";
37 homepage = "https://github.com/mooz/xkeysnail";
38 platforms = platforms.linux;
39 license = licenses.gpl1Only;
40 maintainers = with maintainers; [ bb2020 ];