buildInputs = with pkgs; [ nodePackages.node-pre-gyp ];
};
node-sass = {
- buildInputs = with pkgs; [ binutils libsass python ];
+ buildInputs = with pkgs; [ libsass python ];
postInstall = let
nodeHeaders = pkgs.fetchurl {
url = "https://nodejs.org/download/release/v${pkgs.nodejs.version}/node-v${pkgs.nodejs.version}-headers.tar.gz";
};
in
''
- export AR=${pkgs.binutils.bintools}/bin/ar
node scripts/build.js --tarball=${nodeHeaders}
'';
};
STREAMING_CLUSTER_NUM=1
+ RAILS_LOG_LEVEL=warn
+
# LDAP authentication (optional)
LDAP_ENABLED=true
LDAP_HOST=ldap.immae.eu
sed -i -e 's@^end$@ config.action_mailer.sendmail_settings = { location: ENV.fetch("SENDMAIL_LOCATION", "/usr/sbin/sendmail") }\nend@' config/environments/production.rb
RAILS_ENV=production ${gems}/bin/rails assets:precompile
rm -rf tmp/cache
- ln -sf ../../../../../../../${varDir}/tmp/cache tmp
+ ln -sf ${varDir}/tmp/cache tmp
'';
buildInputs = [ gems gems.ruby pkgs.nodejs pkgs.yarn ];
};