about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/hydra
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-02-04 23:56:39 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2019-02-05 00:00:18 +0100
commitacfc1c15352a88af7077af8581898a85f5935827 (patch)
tree9fc782777d0c5d96b8ecd160990b9de54d2f1a20 /pkgs/development/tools/misc/hydra
parent8fb7706847abf856ec74874035817666e832dc6b (diff)
downloadnixlib-acfc1c15352a88af7077af8581898a85f5935827.tar
nixlib-acfc1c15352a88af7077af8581898a85f5935827.tar.gz
nixlib-acfc1c15352a88af7077af8581898a85f5935827.tar.bz2
nixlib-acfc1c15352a88af7077af8581898a85f5935827.tar.lz
nixlib-acfc1c15352a88af7077af8581898a85f5935827.tar.xz
nixlib-acfc1c15352a88af7077af8581898a85f5935827.tar.zst
nixlib-acfc1c15352a88af7077af8581898a85f5935827.zip
hydra: don't support Nix 1.x
The component `hydra-evaluator` requires `pool.hh` from Nix which isn't
provided by Nix 1.x and thus fails with the following error in this
case:

```
hydra-evaluator.cc:3:10: fatal error: pool.hh: No such file or directory
 #include "pool.hh"
          ^~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:443: hydra_evaluator-hydra-evaluator.o] Error 1
```

As the commit is from 2016 and fairly hard to revert for Nix 1.x
support, it's easier to drop that.

This has been tested with fixed perl-bindings for Nix1 as done in #55146.
Diffstat (limited to 'pkgs/development/tools/misc/hydra')
-rw-r--r--pkgs/development/tools/misc/hydra/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/hydra/default.nix b/pkgs/development/tools/misc/hydra/default.nix
index 395ab5349c2f..00f679cfdac8 100644
--- a/pkgs/development/tools/misc/hydra/default.nix
+++ b/pkgs/development/tools/misc/hydra/default.nix
@@ -8,6 +8,10 @@
 
 with stdenv;
 
+if lib.versions.major nix.version == "1"
+  then throw "This Hydra version doesn't support Nix 1.x"
+else
+
 let
   isGreaterNix20 = with lib.versions;
     let