input-remapper: 1.5.0 -> 2.0.1
Corrected data path replacement Updated test for new UI https://github.com/sezanzeb/input-remapper/releases/tag/2.0.0 https://github.com/sezanzeb/input-remapper/releases/tag/2.0.1
This commit is contained in:
parent
d40361134a
commit
135690307d
2 changed files with 8 additions and 7 deletions
|
@ -46,7 +46,8 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
machine.execute("su - sybil -c input-remapper-gtk >&2 &")
|
machine.execute("su - sybil -c input-remapper-gtk >&2 &")
|
||||||
|
|
||||||
machine.wait_for_text("Input Remapper")
|
machine.wait_for_text("Input Remapper")
|
||||||
machine.wait_for_text("Preset")
|
machine.wait_for_text("Device")
|
||||||
machine.wait_for_text("Change Key")
|
machine.wait_for_text("Presets")
|
||||||
|
machine.wait_for_text("Editor")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
|
@ -33,21 +33,21 @@
|
||||||
let
|
let
|
||||||
maybeXmodmap = lib.optional withXmodmap xmodmap;
|
maybeXmodmap = lib.optional withXmodmap xmodmap;
|
||||||
in
|
in
|
||||||
(buildPythonApplication {
|
(buildPythonApplication rec {
|
||||||
pname = "input-remapper";
|
pname = "input-remapper";
|
||||||
version = "1.5.0";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
rev = "e31a1b2bc5d23fe13130afcc242063196335399f";
|
|
||||||
owner = "sezanzeb";
|
owner = "sezanzeb";
|
||||||
repo = "input-remapper";
|
repo = "input-remapper";
|
||||||
hash = "sha256-KPQLgXSonuOgphagYN2JN+CMIpmjTIPUTCqOPDk0UYU=";
|
rev = version;
|
||||||
|
hash = "sha256-rwlVGF/cWSv6Bsvhrs6nMDQ8avYT80aasrhWyQv55/A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# fix FHS paths
|
# fix FHS paths
|
||||||
substituteInPlace inputremapper/configs/data.py \
|
substituteInPlace inputremapper/configs/data.py \
|
||||||
--replace "/usr/share/input-remapper" "$out/usr/share/input-remapper"
|
--replace "/usr/share" "$out/usr/share"
|
||||||
'' + lib.optionalString withDebugLogLevel ''
|
'' + lib.optionalString withDebugLogLevel ''
|
||||||
# if debugging
|
# if debugging
|
||||||
substituteInPlace inputremapper/logger.py --replace "logger.setLevel(logging.INFO)" "logger.setLevel(logging.DEBUG)"
|
substituteInPlace inputremapper/logger.py --replace "logger.setLevel(logging.INFO)" "logger.setLevel(logging.DEBUG)"
|
||||||
|
|
Loading…
Reference in a new issue