2014-09-24 22:22:27 +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-15 19:36:49 +00:00
|
|
|
#
|
|
|
|
# Individual jobs can be tested by running:
|
|
|
|
#
|
|
|
|
# nix-build nixos/release-small.nix -A <jobname>
|
|
|
|
#
|
2018-02-01 09:34:03 +00:00
|
|
|
{
|
|
|
|
nixpkgs ? {
|
|
|
|
outPath = (import ../lib).cleanSource ./..;
|
|
|
|
revCount = 56789;
|
|
|
|
shortRev = "gfedcba";
|
|
|
|
},
|
2014-09-24 22:22:27 +00:00
|
|
|
stableBranch ? false,
|
2022-09-29 22:59:15 +00:00
|
|
|
supportedSystems ? [
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
], # no i686-linux
|
2014-09-24 22:22:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
nixpkgsSrc = nixpkgs; # urgh
|
|
|
|
|
2019-06-19 10:01:31 +00:00
|
|
|
pkgs = import ./.. { system = "x86_64-linux"; };
|
2014-09-24 22:22:27 +00:00
|
|
|
|
|
|
|
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 = {
|
2024-09-06 08:06:07 +00:00
|
|
|
inherit (nixos')
|
|
|
|
channel
|
|
|
|
manual
|
|
|
|
options
|
|
|
|
dummy
|
|
|
|
;
|
2014-09-24 22:22:27 +00:00
|
|
|
tests = {
|
|
|
|
inherit (nixos'.tests)
|
2022-10-24 13:07:50 +00:00
|
|
|
acme
|
2016-04-26 20:38:47 +00:00
|
|
|
containers-imperative
|
2019-11-25 23:44:12 +00:00
|
|
|
containers-ip
|
2014-09-24 22:22:27 +00:00
|
|
|
firewall
|
|
|
|
ipv6
|
|
|
|
login
|
|
|
|
misc
|
|
|
|
nat
|
2024-02-27 15:23:51 +00:00
|
|
|
nfs4
|
2014-09-24 22:22:27 +00:00
|
|
|
openssh
|
2020-03-31 17:06:04 +00:00
|
|
|
php
|
2018-02-09 18:40:39 +00:00
|
|
|
predictable-interface-names
|
2014-09-24 22:22:27 +00:00
|
|
|
proxy
|
|
|
|
simple
|
|
|
|
;
|
|
|
|
installer = {
|
|
|
|
inherit (nixos'.tests.installer)
|
|
|
|
lvm
|
|
|
|
separateBoot
|
2024-08-30 16:25:24 +00:00
|
|
|
simple
|
|
|
|
simpleUefiSystemdBoot
|
|
|
|
;
|
2018-02-27 19:09:07 +00:00
|
|
|
};
|
2014-09-24 22:22:27 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
inherit (nixpkgs')
|
2017-01-27 14:30:33 +00:00
|
|
|
apacheHttpd
|
2014-09-25 15:52:25 +00:00
|
|
|
cmake
|
|
|
|
cryptsetup
|
2014-09-24 22:22:27 +00:00
|
|
|
emacs
|
2014-09-25 15:52:25 +00:00
|
|
|
gettext
|
|
|
|
git
|
|
|
|
imagemagick
|
2015-01-01 23:49:20 +00:00
|
|
|
jdk
|
2014-09-25 15:52:25 +00:00
|
|
|
linux
|
2022-09-27 17:39:52 +00:00
|
|
|
mariadb
|
2014-09-24 22:22:27 +00:00
|
|
|
nginx
|
2014-09-25 10:50:08 +00:00
|
|
|
nodejs
|
2014-09-24 22:22:27 +00:00
|
|
|
openssh
|
2023-12-29 17:12:41 +00:00
|
|
|
opensshTest
|
2014-09-24 22:22:27 +00:00
|
|
|
php
|
2017-01-27 14:30:48 +00:00
|
|
|
postgresql
|
2014-09-24 22:22:27 +00:00
|
|
|
python
|
2024-04-20 20:49:08 +00:00
|
|
|
release-checks
|
2014-09-24 22:22:27 +00:00
|
|
|
rsyslog
|
|
|
|
stdenv
|
2014-09-25 15:52:25 +00:00
|
|
|
subversion
|
2014-09-24 22:22:27 +00:00
|
|
|
tarball
|
2023-02-23 06:30:29 +00:00
|
|
|
vim
|
|
|
|
tests-stdenv-gcc-stageCompare
|
|
|
|
;
|
2014-09-24 22:22:27 +00:00
|
|
|
};
|
|
|
|
|
2022-09-29 22:59:15 +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 {
|
2014-09-24 22:22:27 +00:00
|
|
|
name = "nixos-${nixos.channel.version}";
|
|
|
|
meta = {
|
|
|
|
description = "Release-critical builds for the NixOS channel";
|
2024-04-21 07:15:22 +00:00
|
|
|
maintainers = [ ];
|
2024-12-10 19:26:33 +00:00
|
|
|
};
|
2022-09-29 22:59:15 +00:00
|
|
|
constituents = lib.flatten [
|
2024-12-10 19:26:33 +00:00
|
|
|
[
|
2022-09-29 22:59:15 +00:00
|
|
|
"nixos.channel"
|
2020-02-17 15:35:53 +00:00
|
|
|
"nixpkgs.tarball"
|
2024-04-17 06:53:10 +00:00
|
|
|
"nixpkgs.release-checks"
|
2024-12-10 19:26:33 +00:00
|
|
|
]
|
2022-09-29 22:59:15 +00:00
|
|
|
(map (onSystems [ "x86_64-linux" ]) [
|
|
|
|
"nixos.tests.installer.lvm"
|
|
|
|
"nixos.tests.installer.separateBoot"
|
|
|
|
"nixos.tests.installer.simple"
|
2024-12-10 19:26:33 +00:00
|
|
|
])
|
2022-09-29 22:59:15 +00:00
|
|
|
(map onSupported [
|
|
|
|
"nixos.dummy"
|
|
|
|
"nixos.manual"
|
2022-10-24 13:07:50 +00:00
|
|
|
"nixos.tests.acme"
|
2022-09-29 22:59:15 +00:00
|
|
|
"nixos.tests.containers-imperative"
|
|
|
|
"nixos.tests.containers-ip"
|
|
|
|
"nixos.tests.firewall"
|
|
|
|
"nixos.tests.ipv6"
|
2024-09-06 08:27:13 +00:00
|
|
|
"nixos.tests.installer.simpleUefiSystemdBoot"
|
2022-09-29 22:59:15 +00:00
|
|
|
"nixos.tests.login"
|
2024-06-04 12:02:56 +00:00
|
|
|
"nixos.tests.misc"
|
2022-09-29 22:59:15 +00:00
|
|
|
"nixos.tests.nat.firewall"
|
|
|
|
"nixos.tests.nat.standalone"
|
2024-02-27 15:23:51 +00:00
|
|
|
"nixos.tests.nfs4.simple"
|
2022-09-29 22:59:15 +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-02-23 06:30:29 +00:00
|
|
|
"nixpkgs.tests-stdenv-gcc-stageCompare"
|
2023-12-29 17:12:41 +00:00
|
|
|
"nixpkgs.opensshTest"
|
2024-12-10 19:26:33 +00:00
|
|
|
])
|
|
|
|
];
|
2014-09-24 22:22:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|