forked from rarias/jungle
Compare commits
2 Commits
0287ac80b8
...
feat/hydra
| Author | SHA1 | Date | |
|---|---|---|---|
|
3fd212176f
|
|||
|
3f4106707e
|
@@ -17,6 +17,7 @@
|
||||
./postgresql.nix
|
||||
./nginx.nix
|
||||
./p.nix
|
||||
./hydra.nix
|
||||
#./pxe.nix
|
||||
];
|
||||
|
||||
|
||||
15
m/hut/hydra.nix
Normal file
15
m/hut/hydra.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
hydraURL = "http://jungle.bsc.es/hydra"; # externally visible URL
|
||||
notificationSender = "hydra@jungle.bsc.es"; # e-mail of Hydra service
|
||||
port = 3001;
|
||||
# a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
|
||||
buildMachinesFiles = [];
|
||||
# you will probably also want, otherwise *everything* will be built from scratch
|
||||
useSubstitutes = true;
|
||||
|
||||
listenHost = "0.0.0.0"; # Force IPv4
|
||||
};
|
||||
}
|
||||
@@ -48,6 +48,17 @@ in
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
proxy_redirect http:// $scheme://;
|
||||
}
|
||||
location /hydra {
|
||||
rewrite ^/hydra/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
proxy_redirect http:// $scheme://;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Request-Base /hydra;
|
||||
}
|
||||
location /lists {
|
||||
proxy_pass http://127.0.0.1:8081;
|
||||
proxy_redirect http:// $scheme://;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ stdenv
|
||||
{
|
||||
stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, boost
|
||||
@@ -11,17 +12,14 @@
|
||||
, openssl
|
||||
, glibcLocales
|
||||
, wrapGAppsHook
|
||||
|
||||
, enableDebug ? false
|
||||
}:
|
||||
|
||||
let
|
||||
wx = wxGTK32;
|
||||
version = "4.12.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wxparaver";
|
||||
inherit version;
|
||||
version = "4.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bsc-performance-tools";
|
||||
@@ -38,26 +36,21 @@ stdenv.mkDerivation {
|
||||
./fix-boost-87.patch
|
||||
];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
# Fix the PARAVER_HOME variable
|
||||
postPatch = ''
|
||||
sed -i 's@^PARAVER_HOME=.*$@PARAVER_HOME='$out'@g' docs/wxparaver
|
||||
sed -i '1aexport LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"' docs/wxparaver
|
||||
'';
|
||||
|
||||
dontStrip = true;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
env =
|
||||
let
|
||||
flags = if enableDebug then "-ggdb -Og" else "-O3";
|
||||
in
|
||||
{
|
||||
CFLAGS = flags;
|
||||
CXXFLAGS = flags;
|
||||
};
|
||||
preConfigure = ''
|
||||
export CFLAGS="-O3"
|
||||
export CXXFLAGS="-O3"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-boost=${boost}"
|
||||
@@ -75,11 +68,11 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
libxml2
|
||||
libxml2.dev
|
||||
xml2
|
||||
wx
|
||||
paraverKernel
|
||||
openssl
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ stdenv
|
||||
{
|
||||
stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, boost
|
||||
@@ -8,16 +9,11 @@
|
||||
, automake
|
||||
, pkg-config
|
||||
, zlib
|
||||
|
||||
, enableDebug ? false
|
||||
}:
|
||||
|
||||
let
|
||||
version = "4.12.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "paraver-kernel";
|
||||
inherit version;
|
||||
version = "4.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bsc-performance-tools";
|
||||
@@ -38,14 +34,10 @@ stdenv.mkDerivation {
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
env =
|
||||
let
|
||||
flags = "-DPARALLEL_ENABLED " + (if enableDebug then "-ggdb -Og" else "-O3");
|
||||
in
|
||||
{
|
||||
CFLAGS = flags;
|
||||
CXXFLAGS = flags;
|
||||
};
|
||||
preConfigure = ''
|
||||
export CFLAGS="-O3 -DPARALLEL_ENABLED"
|
||||
export CXXFLAGS="-O3 -DPARALLEL_ENABLED"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-boost=${boost}"
|
||||
|
||||
Reference in New Issue
Block a user