key-mapper: Install udev rules

This commit is contained in:
PapaTutuWawa 2021-10-18 16:07:55 +02:00
parent 7b92b0c9e7
commit 70601b7d55

View File

@ -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