forked from lix-project/hydra
Check Nix version
This commit is contained in:
parent
1a92f971d4
commit
7b9f488949
12
release.nix
12
release.nix
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue