vsce: fix sandboxed builds on darwin
This commit is contained in:
parent
9f264f69f8
commit
51aeacfcd1
|
@ -1,8 +1,10 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildNpmPackage
|
, buildNpmPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libsecret
|
, libsecret
|
||||||
|
, darwin
|
||||||
, python3
|
, python3
|
||||||
, testers
|
, testers
|
||||||
, vsce
|
, vsce
|
||||||
|
@ -27,7 +29,8 @@ buildNpmPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config python3 ];
|
nativeBuildInputs = [ pkg-config python3 ];
|
||||||
|
|
||||||
buildInputs = [ libsecret ];
|
buildInputs = [ libsecret ]
|
||||||
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit Security ]);
|
||||||
|
|
||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
@ -43,4 +46,3 @@ buildNpmPackage rec {
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue