vscode-js-debug: darwin support
This commit is contained in:
parent
2893f56de0
commit
92d4b33203
@ -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} '
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user