From 70601b7d55aa5d464d64908aaa8f95e282450d22 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 18 Oct 2021 16:07:55 +0200 Subject: [PATCH] key-mapper: Install udev rules --- packages/tools/games/key-mapper/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/tools/games/key-mapper/default.nix b/packages/tools/games/key-mapper/default.nix index 97ae2e3..236c4dd 100644 --- a/packages/tools/games/key-mapper/default.nix +++ b/packages/tools/games/key-mapper/default.nix @@ -42,6 +42,12 @@ python3Packages.buildPythonApplication rec { ''; postInstall = '' + # Install the udev rules + mkdir -p $out/lib/udev/rules.d + cp data/key-mapper.rules $out/lib/udev/rules.d/key-mapper.rules + sed --in-place -e "s|/bin/key-mapper-control|$out/bin/key-mapper-control|" $out/lib/udev/rules.d/key-mapper.rules + + # Install the desktop file mkdir -p $out/share/icons/hicolor/scalable/apps/ cp -r ${desktopItem}/share/applications $out/share/ cp $out/usr/share/key-mapper/key-mapper.svg $out/share/icons/hicolor/scalable/apps/key-mapper.svg