Check Nix version

This commit is contained in:
Eelco Dolstra 2015-10-14 13:17:24 +02:00
parent 1a92f971d4
commit 7b9f488949

View file

@ -2,11 +2,13 @@
, officialRelease ? false , officialRelease ? false
}: }:
with import <nixpkgs/lib>;
let let
pkgs = import <nixpkgs> {}; pkgs = import <nixpkgs> {};
genAttrs' = pkgs.lib.genAttrs [ "x86_64-linux" /* "i686-linux" */ ]; genAttrs' = genAttrs [ "x86_64-linux" /* "i686-linux" */ ];
hydraServer = hydraPkg: hydraServer = hydraPkg:
{ config, pkgs, ... }: { config, pkgs, ... }:
@ -26,10 +28,14 @@ let
environment.systemPackages = [ pkgs.perlPackages.LWP pkgs.perlPackages.JSON ]; environment.systemPackages = [ pkgs.perlPackages.LWP pkgs.perlPackages.JSON ];
}; };
in rec { in
assert versionAtLeast (getVersion pkgs.nixUnstable) "1.11pre4244_133a421";
rec {
tarball = tarball =
with import <nixpkgs> { }; with pkgs;
releaseTools.makeSourceTarball { releaseTools.makeSourceTarball {
name = "hydra-tarball"; name = "hydra-tarball";