forked from mirrors/nixpkgs
vscode: don't fixup on darwin
Editing the `code` binary within the app bundle causes the bundle's signature to be invalidated, which prevents launching starting with macOS Ventura, because VS Code is notarized. See https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ for more information.
This commit is contained in:
parent
90e77c45dc
commit
b29b81e458
|
@ -12,6 +12,7 @@
|
|||
# Attributes inherit from specific versions
|
||||
, version, src, meta, sourceRoot, commandLineArgs
|
||||
, executableName, longName, shortName, pname, updateScript
|
||||
, dontFixup ? false
|
||||
# sourceExecutableName is the name of the binary in the source archive, over
|
||||
# which we have no control
|
||||
, sourceExecutableName ? executableName
|
||||
|
@ -21,7 +22,7 @@ let
|
|||
inherit (stdenv.hostPlatform) system;
|
||||
unwrapped = stdenv.mkDerivation {
|
||||
|
||||
inherit pname version src sourceRoot;
|
||||
inherit pname version src sourceRoot dontFixup;
|
||||
|
||||
passthru = {
|
||||
inherit executableName longName tests updateScript;
|
||||
|
|
|
@ -46,6 +46,11 @@ in
|
|||
|
||||
updateScript = ./update-vscode.sh;
|
||||
|
||||
# Editing the `code` binary within the app bundle causes the bundle's signature
|
||||
# to be invalidated, which prevents launching starting with macOS Ventura, because VS Code is notarized.
|
||||
# See https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ for more information.
|
||||
dontFixup = stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
Open source source code editor developed by Microsoft for Windows,
|
||||
|
|
Loading…
Reference in a new issue