vmware-workstation: don't break patches (#338791)
This commit is contained in:
commit
e9bb8e91eb
@ -142,7 +142,7 @@ stdenv.mkDerivation rec {
|
|||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patchPhase = lib.optionalString enableMacOSGuests ''
|
postPatch = lib.optionalString enableMacOSGuests ''
|
||||||
cp -R "${unlockerSrc}" unlocker/
|
cp -R "${unlockerSrc}" unlocker/
|
||||||
|
|
||||||
substituteInPlace unlocker/unlocker.py --replace \
|
substituteInPlace unlocker/unlocker.py --replace \
|
||||||
@ -153,6 +153,8 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
$out/bin \
|
$out/bin \
|
||||||
$out/etc/vmware \
|
$out/etc/vmware \
|
||||||
@ -324,7 +326,7 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e "s,/sbin/modprobe,${kmod}/bin/modprobe," $out/bin/vmplayer
|
sed -i -e "s,/sbin/modprobe,${kmod}/bin/modprobe," $out/bin/vmplayer
|
||||||
sed -i -e "s,@@BINARY@@,$out/bin/vmplayer," $out/share/applications/vmware-player.desktop
|
sed -i -e "s,@@BINARY@@,$out/bin/vmplayer," $out/share/applications/vmware-player.desktop
|
||||||
|
|
||||||
## VMware OVF Tool compoment
|
## VMware OVF Tool component
|
||||||
echo "Installing VMware OVF Tool for Linux"
|
echo "Installing VMware OVF Tool for Linux"
|
||||||
unpacked="unpacked/vmware-ovftool"
|
unpacked="unpacked/vmware-ovftool"
|
||||||
mkdir -p $out/lib/vmware-ovftool/
|
mkdir -p $out/lib/vmware-ovftool/
|
||||||
@ -390,7 +392,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
chmod +x $out/bin/* $out/lib/vmware/bin/* $out/lib/vmware/setup/*
|
chmod +x $out/bin/* $out/lib/vmware/bin/* $out/lib/vmware/setup/*
|
||||||
|
|
||||||
# Harcoded pkexec hack
|
# Hardcoded pkexec hack
|
||||||
for lib in "lib/vmware/lib/libvmware-mount.so/libvmware-mount.so" "lib/vmware/lib/libvmwareui.so/libvmwareui.so" "lib/vmware/lib/libvmware-fuseUI.so/libvmware-fuseUI.so"
|
for lib in "lib/vmware/lib/libvmware-mount.so/libvmware-mount.so" "lib/vmware/lib/libvmwareui.so/libvmwareui.so" "lib/vmware/lib/libvmware-fuseUI.so/libvmware-fuseUI.so"
|
||||||
do
|
do
|
||||||
sed -i -e "s,/usr/local/sbin,/run/vmware/bin," "$out/$lib"
|
sed -i -e "s,/usr/local/sbin,/run/vmware/bin," "$out/$lib"
|
||||||
@ -405,6 +407,8 @@ stdenv.mkDerivation rec {
|
|||||||
wrapProgram $out/lib/vmware/bin/vmware-vmx
|
wrapProgram $out/lib/vmware/bin/vmware-vmx
|
||||||
rm $out/lib/vmware/bin/vmware-vmx
|
rm $out/lib/vmware/bin/vmware-vmx
|
||||||
ln -s /run/wrappers/bin/vmware-vmx $out/lib/vmware/bin/vmware-vmx
|
ln -s /run/wrappers/bin/vmware-vmx $out/lib/vmware/bin/vmware-vmx
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user