From 746b4b1f9692f3edae1e8d8346f21acd25cae532 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 28 Aug 2020 09:48:05 +0200 Subject: [PATCH] for node-sass xcodebuild is needed on darwin (#166) --- default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 0ec400c..a89015e 100644 --- a/default.nix +++ b/default.nix @@ -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