From 51aeacfcd18672ca5a73d37fc7b15b68a34e19d0 Mon Sep 17 00:00:00 2001 From: Winter Date: Sat, 20 May 2023 18:30:06 -0400 Subject: [PATCH] vsce: fix sandboxed builds on darwin --- pkgs/development/tools/vsce/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/vsce/default.nix b/pkgs/development/tools/vsce/default.nix index 633eda1371c..7fc1b297922 100644 --- a/pkgs/development/tools/vsce/default.nix +++ b/pkgs/development/tools/vsce/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , buildNpmPackage , fetchFromGitHub , pkg-config , libsecret +, darwin , python3 , testers , vsce @@ -27,7 +29,8 @@ buildNpmPackage rec { nativeBuildInputs = [ pkg-config python3 ]; - buildInputs = [ libsecret ]; + buildInputs = [ libsecret ] + ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit Security ]); makeCacheWritable = true; npmFlags = [ "--legacy-peer-deps" ]; @@ -43,4 +46,3 @@ buildNpmPackage rec { license = licenses.mit; }; } -