diff --git a/pkgs/tools/inputmethods/input-remapper/default.nix b/pkgs/tools/inputmethods/input-remapper/default.nix index c90eb780e7d6..e892b5f4fe35 100644 --- a/pkgs/tools/inputmethods/input-remapper/default.nix +++ b/pkgs/tools/inputmethods/input-remapper/default.nix @@ -120,15 +120,13 @@ in sed -r "s#RUN\+\=\"/bin/input-remapper-control#RUN\+\=\"$out/bin/input-remapper-control#g" -i data/99-input-remapper.rules sed -r "s#ExecStart\=/usr/bin/input-remapper-service#ExecStart\=$out/bin/input-remapper-service#g" -i data/input-remapper.service - chmod +x data/*.desktop - - install -D -t $out/share/applications/ data/*.desktop - install -D -t $out/share/polkit-1/actions/ data/input-remapper.policy - install -D data/99-input-remapper.rules $out/etc/udev/rules.d/99-input-remapper.rules - install -D data/input-remapper.service $out/lib/systemd/system/input-remapper.service - install -D data/input-remapper.policy $out/share/polkit-1/actions/input-remapper.policy - install -D data/inputremapper.Control.conf $out/etc/dbus-1/system.d/inputremapper.Control.conf - install -D -t $out/usr/share/input-remapper/ data/* + install -m644 -D -t $out/share/applications/ data/*.desktop + install -m644 -D -t $out/share/polkit-1/actions/ data/input-remapper.policy + install -m644 -D data/99-input-remapper.rules $out/etc/udev/rules.d/99-input-remapper.rules + install -m644 -D data/input-remapper.service $out/lib/systemd/system/input-remapper.service + install -m644 -D data/input-remapper.policy $out/share/polkit-1/actions/input-remapper.policy + install -m644 -D data/inputremapper.Control.conf $out/etc/dbus-1/system.d/inputremapper.Control.conf + install -m644 -D -t $out/usr/share/input-remapper/ data/* # Only install input-remapper prefixed binaries, we don't care about deprecated key-mapper ones install -m755 -D -t $out/bin/ bin/input-remapper*