vsce: fix sandboxed builds on darwin

This commit is contained in:
Winter 2023-05-20 18:30:06 -04:00 committed by Lily Foster
parent 9f264f69f8
commit 51aeacfcd1
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

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