2020-04-24 23:36:52 +00:00
|
|
|
/* This file defines the builds that constitute the Nixpkgs.
|
|
|
|
Everything defined here ends up in the Nixpkgs channel. Individual
|
|
|
|
jobs can be tested by running:
|
|
|
|
|
|
|
|
$ nix-build pkgs/top-level/release.nix -A <jobname>.<system>
|
|
|
|
|
|
|
|
e.g.
|
|
|
|
|
|
|
|
$ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux
|
|
|
|
*/
|
|
|
|
{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; revision = "0000000000000000000000000000000000000000"; }
|
|
|
|
, officialRelease ? false
|
|
|
|
# The platforms for which we build Nixpkgs.
|
2023-03-15 16:39:30 +00:00
|
|
|
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]
|
2020-04-24 23:36:52 +00:00
|
|
|
, limitedSupportedSystems ? [ "i686-linux" ]
|
|
|
|
# Strip most of attributes when evaluating to spare memory usage
|
|
|
|
, scrubJobs ? true
|
|
|
|
# Attributes passed to nixpkgs. Don't build packages marked as unfree.
|
2023-05-24 13:37:59 +00:00
|
|
|
, nixpkgsArgs ? { config = {
|
|
|
|
allowUnfree = false;
|
|
|
|
inHydra = true;
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
# *Exceptionally*, those packages will be cached with their *secure* dependents
|
|
|
|
# because they will reach EOL in the middle of the 23.05 release
|
|
|
|
# and it will be too much painful for our users to recompile them
|
|
|
|
# for no real reason.
|
|
|
|
# Remove them for 23.11.
|
2023-07-15 17:15:38 +00:00
|
|
|
"nodejs-16.20.1"
|
|
|
|
"openssl-1.1.1u"
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
}; }
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
systemsWithAnySupport = supportedSystems ++ limitedSupportedSystems;
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
supportDarwin = lib.genAttrs [
|
|
|
|
"x86_64"
|
|
|
|
"aarch64"
|
|
|
|
] (arch: builtins.elem "${arch}-darwin" systemsWithAnySupport);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nonPackageJobs =
|
2021-06-04 09:07:49 +00:00
|
|
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
manual = import ../../doc { inherit pkgs nixpkgs; };
|
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit pkgs; };
|
2020-08-20 17:08:02 +00:00
|
|
|
pkgs-lib-tests = import ../pkgs-lib/tests { inherit pkgs; };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
darwin-tested = if supportDarwin.x86_64 then pkgs.releaseTools.aggregate
|
2020-04-24 23:36:52 +00:00
|
|
|
{ name = "nixpkgs-darwin-${jobs.tarball.version}";
|
|
|
|
meta.description = "Release-critical builds for the Nixpkgs darwin channel";
|
|
|
|
constituents =
|
|
|
|
[ jobs.tarball
|
|
|
|
jobs.cabal2nix.x86_64-darwin
|
|
|
|
jobs.ghc.x86_64-darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.go.x86_64-darwin
|
|
|
|
jobs.mariadb.x86_64-darwin
|
|
|
|
jobs.nix.x86_64-darwin
|
|
|
|
jobs.nixpkgs-review.x86_64-darwin
|
|
|
|
jobs.nix-info.x86_64-darwin
|
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
|
|
|
jobs.openssh.x86_64-darwin
|
|
|
|
jobs.openssl.x86_64-darwin
|
|
|
|
jobs.pandoc.x86_64-darwin
|
|
|
|
jobs.postgresql.x86_64-darwin
|
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.ruby.x86_64-darwin
|
|
|
|
jobs.rustc.x86_64-darwin
|
|
|
|
# blocking ofBorg CI 2020-02-28
|
|
|
|
# jobs.stack.x86_64-darwin
|
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
|
|
|
jobs.cachix.x86_64-darwin
|
|
|
|
|
|
|
|
# UI apps
|
|
|
|
# jobs.firefox-unwrapped.x86_64-darwin
|
|
|
|
jobs.qt5.qtmultimedia.x86_64-darwin
|
|
|
|
jobs.inkscape.x86_64-darwin
|
|
|
|
jobs.gimp.x86_64-darwin
|
|
|
|
jobs.emacs.x86_64-darwin
|
|
|
|
jobs.wireshark.x86_64-darwin
|
|
|
|
jobs.transmission-gtk.x86_64-darwin
|
|
|
|
|
|
|
|
# Tests
|
|
|
|
/*
|
|
|
|
jobs.tests.cc-wrapper.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-darwin
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2023-03-15 16:39:30 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
*/
|
|
|
|
];
|
|
|
|
} else null;
|
|
|
|
|
|
|
|
unstable = pkgs.releaseTools.aggregate
|
|
|
|
{ name = "nixpkgs-${jobs.tarball.version}";
|
|
|
|
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
|
|
|
|
constituents =
|
|
|
|
[ jobs.tarball
|
2021-09-28 08:13:01 +00:00
|
|
|
jobs.metrics
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.manual
|
|
|
|
jobs.lib-tests
|
2020-08-20 17:08:02 +00:00
|
|
|
jobs.pkgs-lib-tests
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.stdenv.x86_64-linux
|
2021-12-19 01:06:50 +00:00
|
|
|
jobs.cargo.x86_64-linux
|
|
|
|
jobs.go.x86_64-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.linux.x86_64-linux
|
|
|
|
jobs.pandoc.x86_64-linux
|
|
|
|
jobs.python3.x86_64-linux
|
|
|
|
# Needed by contributors to test PRs (by inclusion of the PR template)
|
|
|
|
jobs.nixpkgs-review.x86_64-linux
|
|
|
|
# Needed for support
|
|
|
|
jobs.nix-info.x86_64-linux
|
|
|
|
jobs.nix-info-tested.x86_64-linux
|
|
|
|
# Ensure that X11/GTK are in order.
|
2022-06-16 17:23:12 +00:00
|
|
|
jobs.firefox-unwrapped.x86_64-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.cachix.x86_64-linux
|
|
|
|
|
|
|
|
/*
|
|
|
|
jobs.tests.cc-wrapper.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-gcc7.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-gcc8.x86_64-linux
|
|
|
|
|
|
|
|
# broken see issue #40038
|
|
|
|
|
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang-5.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-5.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang-6.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-6.x86_64-linux
|
|
|
|
jobs.tests.cc-multilib-gcc.x86_64-linux
|
|
|
|
jobs.tests.cc-multilib-clang.x86_64-linux
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-linux
|
2023-03-15 16:39:30 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
*/
|
|
|
|
]
|
2023-03-24 00:07:29 +00:00
|
|
|
++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools
|
2022-01-19 23:45:15 +00:00
|
|
|
++ lib.optionals supportDarwin.x86_64 [
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.stdenv.x86_64-darwin
|
2021-12-19 01:06:50 +00:00
|
|
|
jobs.cargo.x86_64-darwin
|
2022-02-10 20:34:41 +00:00
|
|
|
jobs.cachix.x86_64-darwin
|
2021-12-19 01:06:50 +00:00
|
|
|
jobs.go.x86_64-darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.nixpkgs-review.x86_64-darwin
|
|
|
|
jobs.nix-info.x86_64-darwin
|
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.mariadb.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
|
|
|
jobs.inkscape.x86_64-darwin
|
|
|
|
jobs.qt5.qtmultimedia.x86_64-darwin
|
|
|
|
/*
|
|
|
|
jobs.tests.cc-wrapper.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-gcc7.x86_64-darwin
|
|
|
|
# jobs.tests.cc-wrapper-gcc8.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang-5.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-6.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang-6.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-6.x86_64-darwin
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2023-03-15 16:39:30 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
*/
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
stdenvBootstrapTools = with lib;
|
2023-03-15 16:39:30 +00:00
|
|
|
genAttrs systemsWithAnySupport (system:
|
|
|
|
if hasSuffix "-linux" system then
|
|
|
|
let
|
|
|
|
bootstrap = import ../stdenv/linux/make-bootstrap-tools.nix {
|
2022-10-21 18:38:19 +00:00
|
|
|
pkgs = import ../.. {
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
};
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
in {
|
|
|
|
inherit (bootstrap) dist test;
|
2023-03-15 16:39:30 +00:00
|
|
|
}
|
|
|
|
else if hasSuffix "-darwin" system then
|
2021-05-28 09:39:13 +00:00
|
|
|
let
|
2022-10-21 18:38:19 +00:00
|
|
|
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix {
|
2023-03-15 16:39:30 +00:00
|
|
|
localSystem = { inherit system; };
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
2021-05-28 09:39:13 +00:00
|
|
|
in {
|
2023-03-15 16:39:30 +00:00
|
|
|
# Lightweight distribution and test
|
|
|
|
inherit (bootstrap) dist test;
|
|
|
|
# Test a full stdenv bootstrap from the bootstrap tools definition
|
|
|
|
# TODO: Re-enable once the new bootstrap-tools are in place.
|
|
|
|
#inherit (bootstrap.test-pkgs) stdenv;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
abort "No bootstrap implementation for system: ${system}"
|
|
|
|
);
|
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
# Do not allow attribute collision between jobs inserted in
|
|
|
|
# 'nonPackageAttrs' and jobs pulled in from 'pkgs'.
|
|
|
|
# Conflicts usually cause silent job drops like in
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/182058
|
|
|
|
jobs = lib.attrsets.unionOfDisjoint
|
|
|
|
nonPackageJobs
|
|
|
|
(mapTestOn ((packagePlatforms pkgs) // {
|
2020-04-24 23:36:52 +00:00
|
|
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
|
|
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
|
|
|
idrisPackages = packagePlatforms pkgs.idrisPackages;
|
2020-05-15 21:57:56 +00:00
|
|
|
agdaPackages = packagePlatforms pkgs.agdaPackages;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
pkgsLLVM.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
2020-06-18 07:06:33 +00:00
|
|
|
pkgsMusl.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
pkgsStatic.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
tests = packagePlatforms pkgs.tests;
|
|
|
|
|
|
|
|
# Language packages disabled in https://github.com/NixOS/nixpkgs/commit/ccd1029f58a3bb9eca32d81bf3f33cb4be25cc66
|
|
|
|
|
|
|
|
#emacsPackages = packagePlatforms pkgs.emacsPackages;
|
|
|
|
#rPackages = packagePlatforms pkgs.rPackages;
|
|
|
|
ocamlPackages = { };
|
|
|
|
perlPackages = { };
|
|
|
|
|
|
|
|
darwin = packagePlatforms pkgs.darwin // {
|
|
|
|
xcode = {};
|
|
|
|
};
|
|
|
|
} ));
|
|
|
|
|
|
|
|
in jobs
|