diff --git a/pkgs/by-name/vs/vscode-js-debug/package.nix b/pkgs/by-name/vs/vscode-js-debug/package.nix index 542b5cbfc811..80a13d18102c 100644 --- a/pkgs/by-name/vs/vscode-js-debug/package.nix +++ b/pkgs/by-name/vs/vscode-js-debug/package.nix @@ -1,8 +1,12 @@ { lib +, stdenv , buildNpmPackage , fetchFromGitHub , buildPackages , libsecret +, xcbuild +, Security +, AppKit , pkg-config , nodePackages , runCommand @@ -23,9 +27,17 @@ buildNpmPackage rec { npmDepsHash = "sha256-DfeaiqKadTnGzOObK01ctlavwqTMa0tqn59sLZMPvUM="; - nativeBuildInputs = [ pkg-config nodePackages.node-gyp ]; + nativeBuildInputs = [ + pkg-config + nodePackages.node-gyp + ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; - buildInputs = [ libsecret ]; + buildInputs = + lib.optionals (!stdenv.isDarwin) [ libsecret ] + ++ lib.optionals stdenv.isDarwin [ + Security + AppKit + ]; postPatch = '' ${lib.getExe buildPackages.jq} ' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d82d93031f0..e39ef0838c86 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35099,6 +35099,10 @@ with pkgs; vscode-extensions = recurseIntoAttrs (callPackage ../applications/editors/vscode/extensions { }); + vscode-js-debug = callPackage ../by-name/vs/vscode-js-debug/package.nix { + inherit (darwin.apple_sdk.frameworks) AppKit Security; + }; + vscodium = callPackage ../applications/editors/vscode/vscodium.nix { }; vscodium-fhs = vscodium.fhs; vscodium-fhsWithPackages = vscodium.fhsWithPackages;