2020-04-24 23:36:52 +00: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.
|
2023-03-24 00:07:29 +00:00
|
|
|
#
|
|
|
|
# Individual jobs can be tested by running:
|
|
|
|
#
|
|
|
|
# nix-build nixos/release-small.nix -A <jobname>
|
|
|
|
#
|
2020-04-24 23:36:52 +00:00
|
|
|
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
|
|
|
|
, stableBranch ? false
|
2022-10-21 18:38:19 +00:00
|
|
|
, supportedSystems ? [ "aarch64-linux" "x86_64-linux" ] # no i686-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
nixpkgsSrc = nixpkgs; # urgh
|
|
|
|
|
|
|
|
pkgs = import ./.. { system = "x86_64-linux"; };
|
|
|
|
|
|
|
|
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 = {
|
2020-11-21 19:51:51 +00:00
|
|
|
inherit (nixos') channel manual options iso_minimal amazonImage dummy;
|
2020-04-24 23:36:52 +00:00
|
|
|
tests = {
|
|
|
|
inherit (nixos'.tests)
|
2022-10-30 15:09:59 +00:00
|
|
|
acme
|
2020-04-24 23:36:52 +00:00
|
|
|
containers-imperative
|
|
|
|
containers-ip
|
|
|
|
firewall
|
|
|
|
ipv6
|
|
|
|
login
|
|
|
|
misc
|
|
|
|
nat
|
2023-03-04 12:14:45 +00:00
|
|
|
nfs3
|
2020-04-24 23:36:52 +00:00
|
|
|
openssh
|
|
|
|
php
|
|
|
|
predictable-interface-names
|
|
|
|
proxy
|
|
|
|
simple;
|
|
|
|
installer = {
|
|
|
|
inherit (nixos'.tests.installer)
|
|
|
|
lvm
|
|
|
|
separateBoot
|
|
|
|
simple;
|
|
|
|
};
|
|
|
|
boot = {
|
|
|
|
inherit (nixos'.tests.boot)
|
2022-10-21 18:38:19 +00:00
|
|
|
biosCdrom
|
|
|
|
uefiCdrom;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
inherit (nixpkgs')
|
|
|
|
apacheHttpd
|
|
|
|
cmake
|
|
|
|
cryptsetup
|
|
|
|
emacs
|
|
|
|
gettext
|
|
|
|
git
|
|
|
|
imagemagick
|
|
|
|
jdk
|
|
|
|
linux
|
2022-09-30 11:47:45 +00:00
|
|
|
mariadb
|
2020-04-24 23:36:52 +00:00
|
|
|
nginx
|
|
|
|
nodejs
|
|
|
|
openssh
|
|
|
|
php
|
|
|
|
postgresql
|
|
|
|
python
|
|
|
|
rsyslog
|
|
|
|
stdenv
|
|
|
|
subversion
|
|
|
|
tarball
|
2023-04-12 12:48:02 +00:00
|
|
|
vim
|
|
|
|
tests-stdenv-gcc-stageCompare;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
tested = let
|
|
|
|
onSupported = x: map (system: "${x}.${system}") supportedSystems;
|
|
|
|
onSystems = systems: x: map (system: "${x}.${system}")
|
|
|
|
(pkgs.lib.intersectLists systems supportedSystems);
|
|
|
|
in pkgs.releaseTools.aggregate {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "nixos-${nixos.channel.version}";
|
|
|
|
meta = {
|
|
|
|
description = "Release-critical builds for the NixOS channel";
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
constituents = lib.flatten [
|
|
|
|
[
|
|
|
|
"nixos.channel"
|
2020-04-24 23:36:52 +00:00
|
|
|
"nixpkgs.tarball"
|
2022-10-21 18:38:19 +00:00
|
|
|
]
|
|
|
|
(map (onSystems [ "x86_64-linux" ]) [
|
|
|
|
"nixos.tests.boot.biosCdrom"
|
|
|
|
"nixos.tests.installer.lvm"
|
|
|
|
"nixos.tests.installer.separateBoot"
|
|
|
|
"nixos.tests.installer.simple"
|
|
|
|
])
|
|
|
|
(map onSupported [
|
|
|
|
"nixos.dummy"
|
|
|
|
"nixos.iso_minimal"
|
|
|
|
"nixos.amazonImage"
|
|
|
|
"nixos.manual"
|
2022-10-30 15:09:59 +00:00
|
|
|
"nixos.tests.acme"
|
2022-10-21 18:38:19 +00:00
|
|
|
"nixos.tests.boot.uefiCdrom"
|
|
|
|
"nixos.tests.containers-imperative"
|
|
|
|
"nixos.tests.containers-ip"
|
|
|
|
"nixos.tests.firewall"
|
|
|
|
"nixos.tests.ipv6"
|
|
|
|
"nixos.tests.login"
|
|
|
|
"nixos.tests.misc"
|
|
|
|
"nixos.tests.nat.firewall"
|
|
|
|
"nixos.tests.nat.standalone"
|
2023-03-04 12:14:45 +00:00
|
|
|
"nixos.tests.nfs3.simple"
|
2022-10-21 18:38:19 +00:00
|
|
|
"nixos.tests.openssh"
|
|
|
|
"nixos.tests.php.fpm"
|
|
|
|
"nixos.tests.php.pcre"
|
|
|
|
"nixos.tests.predictable-interface-names.predictable"
|
|
|
|
"nixos.tests.predictable-interface-names.predictableNetworkd"
|
|
|
|
"nixos.tests.predictable-interface-names.unpredictable"
|
|
|
|
"nixos.tests.predictable-interface-names.unpredictableNetworkd"
|
|
|
|
"nixos.tests.proxy"
|
|
|
|
"nixos.tests.simple"
|
|
|
|
"nixpkgs.jdk"
|
2023-04-12 12:48:02 +00:00
|
|
|
"nixpkgs.tests-stdenv-gcc-stageCompare"
|
2022-10-21 18:38:19 +00:00
|
|
|
])
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|