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