-{ mylibs, runCommand, buildBowerComponents, pythonPackages, jq, yarn, nodejs }:
+{ mylibs, runCommand, buildBowerComponents, pythonPackages, libsass, python, fetchurl, jq, yarn, nodejs }:
let
buildslist_src = mylibs.fetchedGit ./buildslist.json;
packagejson = runCommand "package.json" { buildInputs = [ jq ]; } ''
yarnNix = ./yarn-packages.nix;
pkgConfig = {
all = { buildInputs = [ mylibs.yarn2nixPackage.src ]; };
+ node-sass = {
+ buildInputs = [ libsass python ];
+ postInstall = let
+ nodeHeaders = fetchurl {
+ url = "https://nodejs.org/download/release/v${nodejs.version}/node-v${nodejs.version}-headers.tar.gz";
+ sha256 = "16f20ya3ys6w5w6y6l4536f7jrgk4gz46bf71w1r1xxb26a54m32";
+ };
+ in
+ ''
+ node scripts/build.js --tarball=${nodeHeaders}
+ '';
+ };
};
};
buildslist_bower = buildBowerComponents {
pname = "buildbot-buildslist";
inherit (pythonPackages.buildbot-pkg) version;
- __noChroot = true;
preConfigure = ''
export HOME=$PWD
- cp -a ${buildslist_yarn}/node_modules .
- chmod -R u+w node_modules
+ ln -s ${buildslist_yarn}/node_modules .
cp -a ${buildslist_bower}/bower_components ./libs
chmod -R u+w libs
'';