@ -13,12 +13,6 @@ if lib.versions.major nix.version == "1"
else
let
isGreaterNix20 = with lib . versions ;
let
inherit ( nix ) version ;
inherit ( lib ) toInt ;
in major version == " 2 " && toInt ( minor version ) >= 1 || toInt ( major version ) > 2 ;
perlDeps = buildEnv {
name = " h y d r a - p e r l - d e p s " ;
paths = with perlPackages ;
@ -74,16 +68,16 @@ let
] ;
} ;
in releaseTools . nixBuild rec {
name = " h y d r a - ${ version } " ;
version = " 2 0 1 9 - 0 3 - 1 8 " ;
p name = " h y d r a " ;
version = " 2 0 1 9 - 0 5 - 0 6 " ;
inherit stdenv ;
src = fetchFromGitHub {
owner = " N i x O S " ;
repo = " h y d r a " ;
rev = " 0 7 2 1 f 6 6 2 3 f f b 5 a 4 b 6 a 7 7 b 4 9 9 a f 4 e e e 7 d 6 e 4 d d 6 a 7 " ;
sha256 = " 0 b 2 g 2 b n b a q p w x x 8 p 8 1 i 4 g p l 4 y 1 6 i 5 7 z 5 p n j m 9 0 f p d 0 j x n k i j 3 p c g " ;
repo = pname ;
rev = " f f 6 4 5 8 3 d 0 7 f 0 4 6 e 3 7 8 a 6 b e 5 9 6 e c 0 c e 7 a 9 e 2 b 7 4 7 2 " ;
sha256 = " 0 w 8 8 q 0 s a z 7 s i 2 2 z 3 r y i m 6 v d r v 9 q k w n 6 l 2 5 x f m i a p v h 5 q r n r r d c b 9 " ;
} ;
buildInputs =
@ -93,7 +87,8 @@ in releaseTools.nixBuild rec {
perlDeps perl nix
postgresql # for running the tests
nlohmann_json
] ++ lib . optionals isGreaterNix20 [ boost ] ;
boost
] ;
hydraPath = lib . makeBinPath (
[ sqlite subversion openssh nix coreutils findutils pixz
@ -102,15 +97,7 @@ in releaseTools.nixBuild rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ] ;
# adds a patch which ensures compatibility with the API of Nix 2.0.
# it has been reverted in https://github.com/NixOS/hydra/commit/162d671c48a418bd10a8a171ca36787ef3695a44,
# for Nix 2.1/unstable compatibility. Reapplying helps if Nix 2.0 is used to keep the build functional.
patches = lib . optionals ( ! isGreaterNix20 ) [
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / N i x O S / h y d r a / c o m m i t / 0 8 d e 4 3 4 b d d 0 b 0 a 2 2 a b c 2 0 8 1 b e 6 0 6 4 a 6 c 8 4 6 d 3 9 2 0 . p a t c h " ;
sha256 = " 0 k z 7 7 n j p 5 y n n 9 l 8 1 g 3 q 8 z r r y v n s r 0 6 n k 3 i w 0 a 6 0 1 8 7 w x q z f 5 f m f 8 " ;
} )
] ++ [
patches = [
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / N i x O S / h y d r a / p u l l / 6 4 8 / c o m m i t s / 4 1 7 1 a b 4 c 4 f d 5 7 6 c 5 1 6 d c 0 3 b a 6 4 d 1 c 7 9 4 5 f 7 6 9 a f 0 . p a t c h " ;
sha256 = " 1 f x a 2 4 5 9 k d w s 6 q c 4 1 9 d v 4 0 8 4 c 1 s s m y s 7 k q g 4 i c 7 n 6 4 3 k y b a m s g r x " ;