Unverified Commit 51aeacfc authored by Winter's avatar Winter Committed by Lily Foster
Browse files

vsce: fix sandboxed builds on darwin

parent 9f264f69
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
{ 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;
  };
}