2014-09-24 16:22:27 -06:00
|
|
|
# This jobset is used to generate a NixOS channel that contains a
|
|
|
|
# small subset of Nixpkgs, mostly useful for servers that need fast
|
|
|
|
# security updates.
|
|
|
|
|
2018-02-01 02:34:03 -07:00
|
|
|
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
|
2014-09-24 16:22:27 -06:00
|
|
|
, stableBranch ? false
|
|
|
|
, supportedSystems ? [ "x86_64-linux" ] # no i686-linux
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
nixpkgsSrc = nixpkgs; # urgh
|
|
|
|
|
|
|
|
pkgs = import ./.. {};
|
|
|
|
|
|
|
|
lib = pkgs.lib;
|
|
|
|
|
|
|
|
nixos' = import ./release.nix {
|
|
|
|
inherit stableBranch supportedSystems;
|
|
|
|
nixpkgs = nixpkgsSrc;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs' = builtins.removeAttrs (import ../pkgs/top-level/release.nix {
|
|
|
|
inherit supportedSystems;
|
|
|
|
nixpkgs = nixpkgsSrc;
|
|
|
|
}) [ "unstable" ];
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
nixos = {
|
|
|
|
inherit (nixos') channel manual iso_minimal dummy;
|
|
|
|
tests = {
|
|
|
|
inherit (nixos'.tests)
|
2016-04-26 14:38:47 -06:00
|
|
|
containers-imperative
|
|
|
|
containers-ipv4
|
2019-03-24 11:09:39 -06:00
|
|
|
containers-ipv6
|
2014-09-24 16:22:27 -06:00
|
|
|
firewall
|
|
|
|
ipv6
|
|
|
|
login
|
|
|
|
misc
|
|
|
|
nat
|
|
|
|
nfs3
|
|
|
|
openssh
|
2017-11-12 03:03:54 -07:00
|
|
|
php-pcre
|
2018-02-09 11:40:39 -07:00
|
|
|
predictable-interface-names
|
2014-09-24 16:22:27 -06:00
|
|
|
proxy
|
|
|
|
simple;
|
|
|
|
installer = {
|
|
|
|
inherit (nixos'.tests.installer)
|
|
|
|
lvm
|
|
|
|
separateBoot
|
|
|
|
simple;
|
|
|
|
};
|
2018-02-27 12:09:07 -07:00
|
|
|
boot = {
|
|
|
|
inherit (nixos'.tests.boot)
|
|
|
|
biosCdrom;
|
|
|
|
};
|
2014-09-24 16:22:27 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
inherit (nixpkgs')
|
2017-01-27 07:30:33 -07:00
|
|
|
apacheHttpd
|
2014-09-25 09:52:25 -06:00
|
|
|
cmake
|
|
|
|
cryptsetup
|
2014-09-24 16:22:27 -06:00
|
|
|
emacs
|
2014-09-25 09:52:25 -06:00
|
|
|
gettext
|
|
|
|
git
|
|
|
|
imagemagick
|
2015-01-01 16:49:20 -07:00
|
|
|
jdk
|
2014-09-25 09:52:25 -06:00
|
|
|
linux
|
2017-01-27 07:30:48 -07:00
|
|
|
mysql
|
2014-09-24 16:22:27 -06:00
|
|
|
nginx
|
2014-09-25 04:50:08 -06:00
|
|
|
nodejs
|
2014-09-24 16:22:27 -06:00
|
|
|
openssh
|
|
|
|
php
|
2017-01-27 07:30:48 -07:00
|
|
|
postgresql
|
2014-09-24 16:22:27 -06:00
|
|
|
python
|
|
|
|
rsyslog
|
|
|
|
stdenv
|
2014-09-25 09:52:25 -06:00
|
|
|
subversion
|
2014-09-24 16:22:27 -06:00
|
|
|
tarball
|
|
|
|
vim;
|
|
|
|
};
|
|
|
|
|
2015-03-20 12:23:55 -06:00
|
|
|
tested = lib.hydraJob (pkgs.releaseTools.aggregate {
|
2014-09-24 16:22:27 -06:00
|
|
|
name = "nixos-${nixos.channel.version}";
|
|
|
|
meta = {
|
|
|
|
description = "Release-critical builds for the NixOS channel";
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
constituents =
|
|
|
|
let all = x: map (system: x.${system}) supportedSystems; in
|
2015-07-14 08:01:46 -06:00
|
|
|
[ nixpkgs.tarball
|
|
|
|
(all nixpkgs.jdk)
|
|
|
|
]
|
|
|
|
++ lib.collect lib.isDerivation nixos;
|
2015-03-20 12:23:55 -06:00
|
|
|
});
|
2014-09-24 16:22:27 -06:00
|
|
|
|
|
|
|
}
|