key-mapper: Install udev rules
This commit is contained in:
parent
7b92b0c9e7
commit
70601b7d55
@ -42,6 +42,12 @@ python3Packages.buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
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/
|
mkdir -p $out/share/icons/hicolor/scalable/apps/
|
||||||
cp -r ${desktopItem}/share/applications $out/share/
|
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
|
cp $out/usr/share/key-mapper/key-mapper.svg $out/share/icons/hicolor/scalable/apps/key-mapper.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user