for node-sass xcodebuild is needed on darwin (#166)

This commit is contained in:
Rok Garbas 2020-08-28 09:48:05 +02:00 committed by GitHub
parent 0ef75fa71d
commit 746b4b1f96
Failed to generate hash of commit

View file

@ -22,7 +22,14 @@ let
''; '';
pkgConfig = { pkgConfig = {
node-sass = { node-sass = {
buildInputs = [ pkgs.python pkgs.libsass pkgs.pkgconfig ]; buildInputs = with pkgs; [
which
python2
libsass
pkgconfig
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
xcodebuild
];
postInstall = '' postInstall = ''
LIBSASS_EXT=auto yarn --offline run build LIBSASS_EXT=auto yarn --offline run build
rm build/config.gypi rm build/config.gypi