diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 23:55:36 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:21 +0200 |
commit | fcc5798571bf76e7267673bea824746570e0d66d (patch) | |
tree | f108f050d822d663c5d29f81a591476f9a665822 /pkgs/python-packages/buildbot/plugins | |
parent | 1449c51fee2063b17ec9ea80658f0fa521743c75 (diff) | |
download | NUR-fcc5798571bf76e7267673bea824746570e0d66d.tar.gz NUR-fcc5798571bf76e7267673bea824746570e0d66d.tar.zst NUR-fcc5798571bf76e7267673bea824746570e0d66d.zip |
Fix packages and make buildslist sandboxed
Diffstat (limited to 'pkgs/python-packages/buildbot/plugins')
-rw-r--r-- | pkgs/python-packages/buildbot/plugins/buildslist/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/python-packages/buildbot/plugins/buildslist/default.nix b/pkgs/python-packages/buildbot/plugins/buildslist/default.nix index 08e6955a..a1a87b2b 100644 --- a/pkgs/python-packages/buildbot/plugins/buildslist/default.nix +++ b/pkgs/python-packages/buildbot/plugins/buildslist/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { mylibs, runCommand, buildBowerComponents, pythonPackages, jq, yarn, nodejs }: | 1 | { mylibs, runCommand, buildBowerComponents, pythonPackages, libsass, python, fetchurl, jq, yarn, nodejs }: |
2 | let | 2 | let |
3 | buildslist_src = mylibs.fetchedGit ./buildslist.json; | 3 | buildslist_src = mylibs.fetchedGit ./buildslist.json; |
4 | packagejson = runCommand "package.json" { buildInputs = [ jq ]; } '' | 4 | packagejson = runCommand "package.json" { buildInputs = [ jq ]; } '' |
@@ -13,6 +13,18 @@ let | |||
13 | yarnNix = ./yarn-packages.nix; | 13 | yarnNix = ./yarn-packages.nix; |
14 | pkgConfig = { | 14 | pkgConfig = { |
15 | all = { buildInputs = [ mylibs.yarn2nixPackage.src ]; }; | 15 | all = { buildInputs = [ mylibs.yarn2nixPackage.src ]; }; |
16 | node-sass = { | ||
17 | buildInputs = [ libsass python ]; | ||
18 | postInstall = let | ||
19 | nodeHeaders = fetchurl { | ||
20 | url = "https://nodejs.org/download/release/v${nodejs.version}/node-v${nodejs.version}-headers.tar.gz"; | ||
21 | sha256 = "16f20ya3ys6w5w6y6l4536f7jrgk4gz46bf71w1r1xxb26a54m32"; | ||
22 | }; | ||
23 | in | ||
24 | '' | ||
25 | node scripts/build.js --tarball=${nodeHeaders} | ||
26 | ''; | ||
27 | }; | ||
16 | }; | 28 | }; |
17 | }; | 29 | }; |
18 | buildslist_bower = buildBowerComponents { | 30 | buildslist_bower = buildBowerComponents { |
@@ -25,11 +37,9 @@ pythonPackages.buildPythonPackage rec { | |||
25 | pname = "buildbot-buildslist"; | 37 | pname = "buildbot-buildslist"; |
26 | inherit (pythonPackages.buildbot-pkg) version; | 38 | inherit (pythonPackages.buildbot-pkg) version; |
27 | 39 | ||
28 | __noChroot = true; | ||
29 | preConfigure = '' | 40 | preConfigure = '' |
30 | export HOME=$PWD | 41 | export HOME=$PWD |
31 | cp -a ${buildslist_yarn}/node_modules . | 42 | ln -s ${buildslist_yarn}/node_modules . |
32 | chmod -R u+w node_modules | ||
33 | cp -a ${buildslist_bower}/bower_components ./libs | 43 | cp -a ${buildslist_bower}/bower_components ./libs |
34 | chmod -R u+w libs | 44 | chmod -R u+w libs |
35 | ''; | 45 | ''; |