aboutsummaryrefslogtreecommitdiff
path: root/pkgs/python-packages/buildbot
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-12 10:49:32 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-12 13:22:43 +0200
commitb798cf6d60baf5aad5438ba5936259c64d87299c (patch)
treef2760f034be451c04301ea497f57e35c8da878ef /pkgs/python-packages/buildbot
parent7667c367033b15582cf383da62446f78e66a59ef (diff)
downloadNix-b798cf6d60baf5aad5438ba5936259c64d87299c.tar.gz
Nix-b798cf6d60baf5aad5438ba5936259c64d87299c.tar.zst
Nix-b798cf6d60baf5aad5438ba5936259c64d87299c.zip
Move buildbot plugin buildslist to pkgs
Diffstat (limited to 'pkgs/python-packages/buildbot')
-rw-r--r--pkgs/python-packages/buildbot/plugins/buildslist/bower.nix9
-rw-r--r--pkgs/python-packages/buildbot/plugins/buildslist/buildslist.json14
-rw-r--r--pkgs/python-packages/buildbot/plugins/buildslist/default.nix40
-rw-r--r--pkgs/python-packages/buildbot/plugins/default.nix7
4 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/python-packages/buildbot/plugins/buildslist/bower.nix b/pkgs/python-packages/buildbot/plugins/buildslist/bower.nix
new file mode 100644
index 0000000..8b26e0a
--- /dev/null
+++ b/pkgs/python-packages/buildbot/plugins/buildslist/bower.nix
@@ -0,0 +1,9 @@
1# Generated by bower2nix v3.2.0 (https://github.com/rvl/bower2nix)
2{ fetchbower, buildEnv }:
3buildEnv { name = "bower-env"; ignoreCollisions = true; paths = [
4 (fetchbower "jquery" "2.1.1" "2.1.1" "1qir36vi0bppjr9ckm6303vk1f1dkvq5wandpihb7dxl76s832bd")
5 (fetchbower "angular" "1.5.11" "~1.5.3" "1sw31v3dhmxwgrmncw2f9yl07i9px62ssbj0739zsgi59cq2khl7")
6 (fetchbower "lodash" "2.4.2" "~2.4.1" "0bhqarlvhlrxfvcgnxgsrsjgi6az4c117ffxyfi7gjwr9cvrzz4q")
7 (fetchbower "angular-mocks" "1.5.11" "~1.5.3" "0yv0396fw51i6d9lwiwf241rmc28rnxgg2aa9vsc7dnm4qjkn6gx")
8 (fetchbower "buildbot-data" "2.1.0" "~2.1.0" "0hkmm1byy7d712898lhkxf7i0wshmd1f8cr98iz67679nm6abimk")
9]; }
diff --git a/pkgs/python-packages/buildbot/plugins/buildslist/buildslist.json b/pkgs/python-packages/buildbot/plugins/buildslist/buildslist.json
new file mode 100644
index 0000000..27ca94c
--- /dev/null
+++ b/pkgs/python-packages/buildbot/plugins/buildslist/buildslist.json
@@ -0,0 +1,14 @@
1{
2 "tag": "9e87787-master",
3 "meta": {
4 "name": "buildslist",
5 "url": "https://git.immae.eu/perso/Immae/Projets/Buildbot/buildslist",
6 "branch": "master"
7 },
8 "git": {
9 "url": "https://git.immae.eu/perso/Immae/Projets/Buildbot/buildslist",
10 "rev": "9e87787b40f4d6435218268e516be56eacd8d17b",
11 "sha256": "0bli9w0xwpij23jblggz2zwhb7y3gkjdvsppcy6ia3m0x0siclpi",
12 "fetchSubmodules": true
13 }
14}
diff --git a/pkgs/python-packages/buildbot/plugins/buildslist/default.nix b/pkgs/python-packages/buildbot/plugins/buildslist/default.nix
new file mode 100644
index 0000000..372968a
--- /dev/null
+++ b/pkgs/python-packages/buildbot/plugins/buildslist/default.nix
@@ -0,0 +1,40 @@
1{ mylibs, buildBowerComponents, pythonPackages, yarn, nodejs }:
2let
3 buildslist_src = mylibs.fetchedGit ./buildslist.json;
4 buildslist_yarn = mylibs.yarn2nixPackage.mkYarnModules rec {
5 name = "buildslist-yarn-modules";
6 pname = name;
7 inherit (pythonPackages.buildbot-pkg) version;
8 packageJSON = "${buildslist_src.src}/package.json";
9 yarnLock = "${buildslist_src.src}/yarn.lock";
10 pkgConfig = {
11 all = { buildInputs = [ mylibs.yarn2nixPackage.src ]; };
12 };
13 };
14 buildslist_bower = buildBowerComponents {
15 name = "buildslist";
16 generated = ./bower.nix;
17 src = "${buildslist_src.src}/guanlecoja/";
18 };
19in
20pythonPackages.buildPythonPackage rec {
21 pname = "buildbot-buildslist";
22 inherit (pythonPackages.buildbot-pkg) version;
23
24 preConfigure = ''
25 export HOME=$PWD
26 cp -a ${buildslist_yarn}/node_modules .
27 chmod -R u+w node_modules
28 cp -a ${buildslist_bower}/bower_components ./libs
29 chmod -R u+w libs
30 '';
31 propagatedBuildInputs = with pythonPackages; [
32 (klein.overridePythonAttrs(old: { checkPhase = ""; }))
33 buildbot-pkg
34 ];
35 nativeBuildInputs = [ yarn nodejs ];
36 buildInputs = [ buildslist_yarn buildslist_bower ];
37
38 doCheck = false;
39 src = buildslist_src.src;
40}
diff --git a/pkgs/python-packages/buildbot/plugins/default.nix b/pkgs/python-packages/buildbot/plugins/default.nix
new file mode 100644
index 0000000..4952819
--- /dev/null
+++ b/pkgs/python-packages/buildbot/plugins/default.nix
@@ -0,0 +1,7 @@
1{ mylibs, callPackage, python }:
2{
3 buildslist = callPackage ./buildslist {
4 inherit mylibs;
5 pythonPackages = python.pkgs;
6 };
7}