[Nix-dev] hydra local build failed

Joachim Schiele js at lastlog.de
Wed Dec 14 18:40:54 CET 2016


On 12.12.2016 13:39, Walter Franzini wrote:
> Hi,
> 
> I'm going to experiment with hydra and installing it in a nix
> multi-user environment I get a compilation error:
> 
> ...
> g++ -DHAVE_CONFIG_H -I. -I../..    -I/nix/store/xibmb4s2xah92zx2m34gng55in38l2cq-boehm-gc-7.2g-dev/include -I/nix/store/i90xvxfz44hg85yyv9px2vkkvdarfn85-nix-1.12pre4523_3b81b26-dev/include/nix -Wall -laws-cpp-sdk-s3 -g -O2 -std=c++11 -c -o s3-binary-cache-store.o s3-binary-cache-store.cc
> s3-binary-cache-store.cc:6:29: fatal error: aws/s3/S3Client.h: No such file or directory
> compilation terminated.
> make[3]: *** [Makefile:442: s3-binary-cache-store.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory '/tmp/nix-build-hydra-2016-04-15.drv-0/hydra-177bf25d648092826a75369191503a3f2bb763a4-src/src/hydra-queue-runner'
> make[2]: *** [Makefile:363: all-recursive] Error 1
> ...
> 
> What I'm doing wrong?
> 
> Thanks
> 

in your case you simply are missing some dependencies, how do you build
it? with nix-build or nix-shell?

however:

there was no announcement but hydra is now part of nixpkgs which is awesome:










services = {




      openssh.enable = true;
      postfix = {
        enable = true;
        setSendmail = true;
      };

      hydra = {
        enable = true;
        dbi = "dbi:Pg:dbname=hydra;host=localhost;user=hydra;";
        hydraURL = "https://hydra.nixcloud.io";
        listenHost = "localhost";
        port = 3000;
        minimumDiskFree = 20;  # in GB
        minimumDiskFreeEvaluator = 2;
        notificationSender = "js at lastlog.de";
        logo = null;
        debugServer = false;
      };
      # Hydra requires postgresql to run
      postgresql.enable = true;
      postgresql.package = pkgs.postgresql;
      postgresql.authentication = pkgs.lib.mkOverride 10 ''
        host hydra all 127.0.0.1/8 trust
        local all all trust
      '';

      # frontend http/https server
      nginx.enable = true;
      nginx.config =
        ''
          error_log /var/log/nginx-error.log;
          events {}

          http {
            server {
              listen 80 default_server;
              listen [::]:80 default_server;
              server_name _;
              return 301 https://$host$request_uri;
            }
            server {
              listen 443 ssl;
              access_log /var/log/nginx-access.log;
              server_name hydra.nixcloud.io;
              ssl_certificate /root/ssl/hydra.crt;
              ssl_certificate_key /root/ssl/hydra.key;
              ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
              ssl_ciphers HIGH:!aNULL:!MD5;
              location / {
                proxy_set_header Host $http_host;
                proxy_set_header X-Forwarded-Host $http_host;
                proxy_set_header X-Forwarded-Proto https;
                proxy_set_header X-Forwarded-Port 443;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Request-Base "https://hydra.nixcloud.io";
                proxy_pass http://localhost:3000/;
              }
            }
          }
        '';
    };




More information about the nix-dev mailing list