mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
podman-desktop: use --replace-fail instead of --replace
This commit is contained in:
parent
2ec2f2a6ee
commit
c1afccdb82
@ -36,11 +36,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for file in packages/main/src/tray-animate-icon.ts extensions/podman/packages/extension/src/util.ts packages/main/src/plugin/certificates.ts; do
|
||||
for file in packages/main/src/tray-animate-icon.ts packages/main/src/plugin/certificates.ts; do
|
||||
substituteInPlace "$file" \
|
||||
--replace 'process.resourcesPath' "'$out/share/lib/podman-desktop/resources'" \
|
||||
--replace '(process as any).resourcesPath' "'$out/share/lib/podman-desktop/resources'"
|
||||
--replace-fail 'process.resourcesPath' "'$out/share/lib/podman-desktop/resources'"
|
||||
done
|
||||
substituteInPlace "extensions/podman/packages/extension/src/util.ts" \
|
||||
--replace-fail '(process as any).resourcesPath' "'$out/share/lib/podman-desktop/resources'"
|
||||
'';
|
||||
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
|
||||
|
Loading…
Reference in New Issue
Block a user