vscode-js-debug: darwin support

This commit is contained in:
Xandor Schiefer 2024-06-28 00:08:53 +02:00
parent 2893f56de0
commit 92d4b33203
No known key found for this signature in database
GPG Key ID: B4A5F0674557AA6C
2 changed files with 18 additions and 2 deletions

View File

@ -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} '

View File

@ -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;