From 7c81e1d58761b599cf2e39fc59cff5c855d7b08e Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Mon, 16 Dec 2024 11:00:04 -0500 Subject: [PATCH] open-vm-tools: substituteInPlace use --replace-fail --- pkgs/by-name/op/open-vm-tools/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/op/open-vm-tools/package.nix b/pkgs/by-name/op/open-vm-tools/package.nix index ac340b7a87c5..8a039edbfba6 100644 --- a/pkgs/by-name/op/open-vm-tools/package.nix +++ b/pkgs/by-name/op/open-vm-tools/package.nix @@ -119,8 +119,8 @@ stdenv.mkDerivation (finalAttrs: { sed -i 's,/bin/fusermount3,${fuse3}/bin/fusermount3,' vmhgfs-fuse/config.c substituteInPlace services/plugins/vix/foundryToolsDaemon.c \ - --replace "/usr/bin/vmhgfs-fuse" "${placeholder "out"}/bin/vmhgfs-fuse" \ - --replace "/bin/mount" "${util-linux}/bin/mount" + --replace-fail "/usr/bin/vmhgfs-fuse" "${placeholder "out"}/bin/vmhgfs-fuse" \ + --replace-fail "/bin/mount" "${util-linux}/bin/mount" ''; configureFlags = [ @@ -145,7 +145,7 @@ stdenv.mkDerivation (finalAttrs: { which ] }" - substituteInPlace "$out/lib/udev/rules.d/99-vmware-scsi-udev.rules" --replace "/bin/sh" "${bash}/bin/sh" + substituteInPlace "$out/lib/udev/rules.d/99-vmware-scsi-udev.rules" --replace-fail "/bin/sh" "${bash}/bin/sh" ''; meta = with lib; {