From f40924a499b405becc41b9c869f64ef0ac5b4b5b Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 26 Sep 2021 00:42:48 +0300 Subject: [PATCH] vscode: apply postPatch on linux only --- pkgs/applications/editors/vscode/generic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 49836b94d81b..7a3f34828ee2 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -112,7 +112,8 @@ let ''; # See https://github.com/NixOS/nixpkgs/issues/49643#issuecomment-873853897 - postPatch = '' + # linux only because of https://github.com/NixOS/nixpkgs/issues/138729 + postPatch = lib.optionalString stdenv.isLinux '' # this is a fix for "save as root" functionality packed="resources/app/node_modules.asar" unpacked="resources/app/node_modules"