git.iko.soy/typeable/nixpkgs
on master help sign in
prl-tools: remove user services using .desktop files
commit6ead149ff91220706c0a347468925a2a288ca829 authorLuke Adams <luke.adams@belljar.io> dateWed 19 Jul 2017, 17:40 (9 years ago) parent26d6eab
1 file changed−30
pkgs/os-specific/linux/prl-tools/default.nix−30
pkgs/os-specific/linux/prl-tools/default.nix−30
@@ -11,26 +11,6 @@ let xorgFullVer = (builtins.parseDrvName xorg.xorgserver.name).version;
1111 x64 = if stdenv.system == "x86_64-linux" then true
1212 else if stdenv.system == "i686-linux" then false
1313 else abort "Parallels Tools for Linux only support {x86-64,i686}-linux targets";
14− # We autostart user services by ourselves, because prlcc uses hardcoded paths.
15− autostart = [ { exec = "prlcc";
16− description = "Parallels Control Center";
17− }
18− { exec = "prldhd";
19− description = "Parallels Control Center"; # not a mistake
20− }
21− { exec = "prl_wmouse_d";
22− description = "Parallels Walking Mouse Daemon";
23− }
24− { exec = "prlcp";
25− description = "Parallels CopyPaste Tool";
26− }
27− { exec = "prlsga";
28− description = "Parallels Shared Guest Applications Tool";
29− }
30− { exec = "prlshprof";
31− description = "Parallels Shared Profile Tool";
32− }
33− ];
3414in
3515stdenv.mkDerivation rec {
3616 version = "${prl_major}.2.1-41615";
@@ -87,11 +67,6 @@ stdenv.mkDerivation rec {
8767 stdenv.lib.makeLibraryPath ([ stdenv.cc.cc libXrandr libXext libX11 libXcomposite libXinerama ]
8868 ++ lib.optionals (!libsOnly) [ libXi glib dbus_glib zlib ]);
8969
90− desktops = map (x: substituteAll ({
91− src = ./autostart.desktop;
92− name = x.exec + ".desktop";
93− version = version;
94− } // x)) autostart;
9570
9671 installPhase = ''
9772 if test -z "$libsOnly"; then
@@ -144,11 +119,6 @@ stdenv.mkDerivation rec {
144119 sed 's,/bin/bash,${stdenv.shell},g' $i > $out/lib/udev/rules.d/$i
145120 done
146121
147− mkdir -p $out/share/autostart
148− for i in $desktops; do
149− cat $i | sed "s,^Exec=,Exec=$out/bin/," > $out/share/autostart/$(basename $i)
150− done
151−
152122 (
153123 cd xorg.${xorgVer}
154124 # Install the X modules.