Skip to content

Commit

Permalink
for node-sass xcodebuild is needed on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Aug 27, 2020
1 parent 0ef75fa commit ad05380
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion default.nix
Expand Up @@ -22,7 +22,14 @@ let
'';
pkgConfig = {
node-sass = {
buildInputs = [ pkgs.python pkgs.libsass pkgs.pkgconfig ];
buildInputs = with pkgs; [
which
python2
libsass
pkgconfig
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
xcodebuild
];
postInstall = ''
LIBSASS_EXT=auto yarn --offline run build
rm build/config.gypi
Expand Down

0 comments on commit ad05380

Please sign in to comment.