2013-03-26 10:02:29 +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
|
2010-04-19 14:21:52 +00:00
|
|
|
*/
|
2020-03-29 18:57:50 +00:00
|
|
|
{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; revision = "0000000000000000000000000000000000000000"; }
|
2013-03-26 10:57:44 +00:00
|
|
|
, officialRelease ? false
|
2017-08-03 12:09:30 +00:00
|
|
|
# The platforms for which we build Nixpkgs.
|
2023-01-01 19:24:02 +00:00
|
|
|
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]
|
2017-08-03 12:09:30 +00:00
|
|
|
, limitedSupportedSystems ? [ "i686-linux" ]
|
|
|
|
# Strip most of attributes when evaluating to spare memory usage
|
2020-02-10 15:25:33 +00:00
|
|
|
, scrubJobs ? true
|
2017-08-03 12:09:30 +00:00
|
|
|
# Attributes passed to nixpkgs. Don't build packages marked as unfree.
|
2023-05-20 13:47:48 +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-08-09 04:20:00 +00:00
|
|
|
"nodejs-16.20.2"
|
2023-08-01 14:28:52 +00:00
|
|
|
"openssl-1.1.1v"
|
2023-05-20 13:47:48 +00:00
|
|
|
];
|
|
|
|
}; }
|
2013-03-26 10:57:44 +00:00
|
|
|
}:
|
|
|
|
|
2017-02-27 16:20:25 +00:00
|
|
|
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
|
2008-11-28 10:56:36 +00:00
|
|
|
|
2013-03-26 10:57:44 +00:00
|
|
|
let
|
2017-08-03 12:09:30 +00:00
|
|
|
|
|
|
|
systemsWithAnySupport = supportedSystems ++ limitedSupportedSystems;
|
|
|
|
|
2022-01-11 10:31:58 +00:00
|
|
|
supportDarwin = lib.genAttrs [
|
|
|
|
"x86_64"
|
|
|
|
"aarch64"
|
|
|
|
] (arch: builtins.elem "${arch}-darwin" systemsWithAnySupport);
|
2018-07-04 15:21:33 +00:00
|
|
|
|
2022-07-26 21:22:27 +00:00
|
|
|
nonPackageJobs =
|
2021-05-31 14:12:17 +00:00
|
|
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; };
|
2013-03-26 10:57:44 +00:00
|
|
|
|
2020-11-04 12:53:25 +00:00
|
|
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
2016-03-24 16:36:26 +00:00
|
|
|
|
2018-10-05 14:46:58 +00:00
|
|
|
manual = import ../../doc { inherit pkgs nixpkgs; };
|
2017-04-25 00:12:43 +00:00
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit pkgs; };
|
2020-03-26 01:54:23 +00:00
|
|
|
pkgs-lib-tests = import ../pkgs-lib/tests { inherit pkgs; };
|
2014-08-24 09:02:23 +00:00
|
|
|
|
2022-01-11 10:31:58 +00:00
|
|
|
darwin-tested = if supportDarwin.x86_64 then pkgs.releaseTools.aggregate
|
2017-04-10 16:29:11 +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
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.ghc.x86_64-darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.go.x86_64-darwin
|
2018-05-01 15:36:29 +00:00
|
|
|
jobs.mariadb.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.nix.x86_64-darwin
|
2020-01-08 14:47:09 +00:00
|
|
|
jobs.nixpkgs-review.x86_64-darwin
|
2017-10-13 22:50:50 +00:00
|
|
|
jobs.nix-info.x86_64-darwin
|
2017-10-17 13:51:51 +00:00
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.openssh.x86_64-darwin
|
|
|
|
jobs.openssl.x86_64-darwin
|
2018-12-30 22:50:49 +00:00
|
|
|
jobs.pandoc.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.postgresql.x86_64-darwin
|
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.ruby.x86_64-darwin
|
2017-04-10 16:29:11 +00:00
|
|
|
jobs.rustc.x86_64-darwin
|
2020-02-29 00:02:19 +00:00
|
|
|
# blocking ofBorg CI 2020-02-28
|
|
|
|
# jobs.stack.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
2020-01-08 12:17:54 +00:00
|
|
|
jobs.cachix.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
|
2018-07-11 20:48:47 +00:00
|
|
|
# UI apps
|
2019-03-09 01:06:22 +00:00
|
|
|
# jobs.firefox-unwrapped.x86_64-darwin
|
2018-07-11 20:48:47 +00:00
|
|
|
jobs.qt5.qtmultimedia.x86_64-darwin
|
|
|
|
jobs.inkscape.x86_64-darwin
|
2018-12-30 22:50:49 +00:00
|
|
|
jobs.gimp.x86_64-darwin
|
2018-07-11 20:48:47 +00:00
|
|
|
jobs.emacs.x86_64-darwin
|
2018-11-07 18:59:30 +00:00
|
|
|
jobs.wireshark.x86_64-darwin
|
2018-08-18 06:45:28 +00:00
|
|
|
jobs.transmission-gtk.x86_64-darwin
|
2018-07-11 20:48:47 +00:00
|
|
|
|
|
|
|
# Tests
|
2019-04-29 08:07:20 +00:00
|
|
|
/*
|
2023-09-07 01:01:04 +00:00
|
|
|
jobs.tests.cc-wrapper.default.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages.clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages.libcxx.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
2017-08-03 22:18:59 +00:00
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2023-01-17 02:20:36 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-darwin
|
2019-04-29 08:07:20 +00:00
|
|
|
*/
|
2017-04-10 16:29:11 +00:00
|
|
|
];
|
2018-07-04 15:21:33 +00:00
|
|
|
} else null;
|
2017-04-10 16:29:11 +00:00
|
|
|
|
2016-10-12 16:11:13 +00:00
|
|
|
unstable = pkgs.releaseTools.aggregate
|
|
|
|
{ name = "nixpkgs-${jobs.tarball.version}";
|
|
|
|
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
|
|
|
|
constituents =
|
|
|
|
[ jobs.tarball
|
2021-09-27 14:33:23 +00:00
|
|
|
jobs.metrics
|
2016-10-12 16:11:13 +00:00
|
|
|
jobs.manual
|
2017-04-25 00:12:43 +00:00
|
|
|
jobs.lib-tests
|
2020-03-26 01:54:23 +00:00
|
|
|
jobs.pkgs-lib-tests
|
2016-10-12 16:11:13 +00:00
|
|
|
jobs.stdenv.x86_64-linux
|
2021-12-12 00:22:17 +00:00
|
|
|
jobs.cargo.x86_64-linux
|
|
|
|
jobs.go.x86_64-linux
|
2016-10-12 16:11:13 +00:00
|
|
|
jobs.linux.x86_64-linux
|
2018-12-30 22:50:49 +00:00
|
|
|
jobs.pandoc.x86_64-linux
|
2016-10-12 16:11:13 +00:00
|
|
|
jobs.python3.x86_64-linux
|
2020-01-08 14:47:09 +00:00
|
|
|
# Needed by contributors to test PRs (by inclusion of the PR template)
|
|
|
|
jobs.nixpkgs-review.x86_64-linux
|
2017-10-13 22:50:50 +00:00
|
|
|
# Needed for support
|
|
|
|
jobs.nix-info.x86_64-linux
|
2017-10-17 13:51:51 +00:00
|
|
|
jobs.nix-info-tested.x86_64-linux
|
2019-09-03 22:49:40 +00:00
|
|
|
# Ensure that X11/GTK are in order.
|
2022-05-26 13:45:38 +00:00
|
|
|
jobs.firefox-unwrapped.x86_64-linux
|
2020-01-08 12:17:54 +00:00
|
|
|
jobs.cachix.x86_64-linux
|
2017-09-18 17:48:16 +00:00
|
|
|
|
2019-04-29 08:07:20 +00:00
|
|
|
/*
|
2023-09-07 01:01:04 +00:00
|
|
|
jobs.tests.cc-wrapper.default.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.gcc7Stdenv.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.gcc8Stdenv.x86_64-linux
|
2018-05-11 01:10:06 +00:00
|
|
|
|
|
|
|
# broken see issue #40038
|
|
|
|
|
2023-09-07 01:01:04 +00:00
|
|
|
jobs.tests.cc-wrapper.llvmPackages.clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages.libcxx.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_5.clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_5.libcxx.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_6.clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_6.libcxx.x86_64-linux
|
2017-11-30 19:10:41 +00:00
|
|
|
jobs.tests.cc-multilib-gcc.x86_64-linux
|
|
|
|
jobs.tests.cc-multilib-clang.x86_64-linux
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.tests.stdenv-inputs.x86_64-linux
|
2023-01-17 02:20:36 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-linux
|
2019-04-29 08:07:20 +00:00
|
|
|
*/
|
2018-07-04 15:21:33 +00:00
|
|
|
]
|
2023-03-16 11:53:07 +00:00
|
|
|
++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools
|
2022-01-11 10:31:58 +00:00
|
|
|
++ lib.optionals supportDarwin.x86_64 [
|
2018-07-04 15:21:33 +00:00
|
|
|
jobs.stdenv.x86_64-darwin
|
2021-12-12 00:22:17 +00:00
|
|
|
jobs.cargo.x86_64-darwin
|
2022-02-01 12:06:46 +00:00
|
|
|
jobs.cachix.x86_64-darwin
|
2021-12-12 00:22:17 +00:00
|
|
|
jobs.go.x86_64-darwin
|
2018-07-04 15:21:33 +00:00
|
|
|
jobs.python3.x86_64-darwin
|
2020-01-08 14:47:09 +00:00
|
|
|
jobs.nixpkgs-review.x86_64-darwin
|
2018-07-04 15:21:33 +00:00
|
|
|
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
|
2019-04-29 08:07:20 +00:00
|
|
|
/*
|
2023-09-07 01:01:04 +00:00
|
|
|
jobs.tests.cc-wrapper.default.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.gcc7Stdenv.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.gcc8Stdenv.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages.clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages.libcxx.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_5.clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_5.libcxx.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_6.clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper.llvmPackages_6.libcxx.x86_64-darwin
|
2017-09-18 17:48:16 +00:00
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2023-01-17 02:20:36 +00:00
|
|
|
jobs.tests.stdenv.hooks.patch-shebangs.x86_64-darwin
|
2019-04-29 08:07:20 +00:00
|
|
|
*/
|
2018-07-04 15:21:33 +00:00
|
|
|
];
|
2016-10-12 16:11:13 +00:00
|
|
|
};
|
2017-08-06 10:35:34 +00:00
|
|
|
|
|
|
|
stdenvBootstrapTools = with lib;
|
2023-01-01 19:24:02 +00:00
|
|
|
genAttrs systemsWithAnySupport (system:
|
|
|
|
if hasSuffix "-linux" system then
|
|
|
|
let
|
|
|
|
bootstrap = import ../stdenv/linux/make-bootstrap-tools.nix {
|
2022-07-27 04:04:24 +00:00
|
|
|
pkgs = import ../.. {
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
};
|
|
|
|
};
|
2017-08-06 10:35:34 +00:00
|
|
|
in {
|
|
|
|
inherit (bootstrap) dist test;
|
2023-01-01 19:24:02 +00:00
|
|
|
}
|
|
|
|
else if hasSuffix "-darwin" system then
|
2021-04-28 08:21:54 +00:00
|
|
|
let
|
2022-07-27 04:04:24 +00:00
|
|
|
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix {
|
2023-01-01 19:24:02 +00:00
|
|
|
localSystem = { inherit system; };
|
2022-07-27 04:04:24 +00:00
|
|
|
};
|
2021-04-28 08:21:54 +00:00
|
|
|
in {
|
2023-01-01 19:24:02 +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-07-26 21:22:27 +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) // {
|
2015-09-15 09:46:20 +00:00
|
|
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
2015-05-29 09:25:26 +00:00
|
|
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
2018-07-12 23:07:32 +00:00
|
|
|
idrisPackages = packagePlatforms pkgs.idrisPackages;
|
2019-12-29 12:14:16 +00:00
|
|
|
agdaPackages = packagePlatforms pkgs.agdaPackages;
|
2011-08-06 10:28:24 +00:00
|
|
|
|
2021-08-01 16:19:11 +00:00
|
|
|
pkgsLLVM.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
2020-06-05 06:04:09 +00:00
|
|
|
pkgsMusl.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
pkgsStatic.stdenv = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
|
2020-01-17 15:48:42 +00:00
|
|
|
tests = packagePlatforms pkgs.tests;
|
|
|
|
|
2016-08-28 16:18:44 +00:00
|
|
|
# Language packages disabled in https://github.com/NixOS/nixpkgs/commit/ccd1029f58a3bb9eca32d81bf3f33cb4be25cc66
|
2015-11-24 09:14:16 +00:00
|
|
|
|
2019-08-07 22:52:22 +00:00
|
|
|
#emacsPackages = packagePlatforms pkgs.emacsPackages;
|
2016-08-28 16:18:44 +00:00
|
|
|
#rPackages = packagePlatforms pkgs.rPackages;
|
2016-02-10 12:50:31 +00:00
|
|
|
ocamlPackages = { };
|
|
|
|
perlPackages = { };
|
2017-05-07 19:35:43 +00:00
|
|
|
|
2017-08-17 21:12:51 +00:00
|
|
|
darwin = packagePlatforms pkgs.darwin // {
|
|
|
|
xcode = {};
|
|
|
|
};
|
2015-02-25 18:27:23 +00:00
|
|
|
} ));
|
2010-08-10 00:09:29 +00:00
|
|
|
|
2013-03-26 10:57:44 +00:00
|
|
|
in jobs
|