2013-03-26 14:02:29 +04: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 18:21:52 +04:00
|
|
|
*/
|
2018-07-04 22:52:15 +03:00
|
|
|
{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
|
2013-03-26 14:57:44 +04:00
|
|
|
, officialRelease ? false
|
2017-08-03 15:09:30 +03:00
|
|
|
# The platforms for which we build Nixpkgs.
|
2017-08-06 11:53:26 +03:00
|
|
|
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ]
|
2017-08-03 15:09:30 +03: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.
|
2018-08-08 20:04:06 +03:00
|
|
|
, nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
|
2013-03-26 14:57:44 +04:00
|
|
|
}:
|
|
|
|
|
2017-02-27 19:20:25 +03:00
|
|
|
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
|
2008-11-28 13:56:36 +03:00
|
|
|
|
2013-03-26 14:57:44 +04:00
|
|
|
let
|
2017-08-03 15:09:30 +03:00
|
|
|
|
|
|
|
systemsWithAnySupport = supportedSystems ++ limitedSupportedSystems;
|
|
|
|
|
2018-07-04 18:21:33 +03:00
|
|
|
supportDarwin = builtins.elem "x86_64-darwin" systemsWithAnySupport;
|
|
|
|
|
2013-03-26 14:57:44 +04:00
|
|
|
jobs =
|
2016-10-12 19:11:13 +03:00
|
|
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease; };
|
2013-03-26 14:57:44 +04:00
|
|
|
|
2016-03-24 19:36:26 +03:00
|
|
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
|
|
|
|
2014-08-24 13:02:23 +04:00
|
|
|
manual = import ../../doc;
|
2017-04-25 03:12:43 +03:00
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit pkgs; };
|
2014-08-24 13:02:23 +04:00
|
|
|
|
2018-07-04 18:21:33 +03:00
|
|
|
darwin-tested = if supportDarwin then pkgs.releaseTools.aggregate
|
2017-04-10 19:29:11 +03: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 20:48:16 +03:00
|
|
|
jobs.ghc.x86_64-darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.go.x86_64-darwin
|
2018-05-01 18:36:29 +03:00
|
|
|
jobs.mariadb.x86_64-darwin
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.nix.x86_64-darwin
|
|
|
|
jobs.nox.x86_64-darwin
|
2017-10-14 01:50:50 +03:00
|
|
|
jobs.nix-info.x86_64-darwin
|
2017-10-17 16:51:51 +03:00
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.openssh.x86_64-darwin
|
|
|
|
jobs.openssl.x86_64-darwin
|
|
|
|
jobs.postgresql.x86_64-darwin
|
2017-04-10 19:29:11 +03:00
|
|
|
jobs.python.x86_64-darwin
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.ruby.x86_64-darwin
|
2017-04-10 19:29:11 +03:00
|
|
|
jobs.rustc.x86_64-darwin
|
2018-07-11 23:48:47 +03:00
|
|
|
jobs.stack.x86_64-darwin
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
|
|
|
|
2018-07-11 23:48:47 +03:00
|
|
|
# UI apps
|
2018-08-17 18:27:48 +03:00
|
|
|
jobs.firefox-unwrapped.x86_64-darwin
|
2018-07-11 23:48:47 +03:00
|
|
|
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
|
2018-08-18 09:45:28 +03:00
|
|
|
jobs.transmission-gtk.x86_64-darwin
|
2018-07-11 23:48:47 +03:00
|
|
|
|
|
|
|
# Tests
|
2017-09-18 20:48:16 +03: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.cc-wrapper-clang-39.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-39.x86_64-darwin
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
2017-08-04 01:18:59 +03:00
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2017-04-10 19:29:11 +03:00
|
|
|
];
|
2018-07-04 18:21:33 +03:00
|
|
|
} else null;
|
2017-04-10 19:29:11 +03:00
|
|
|
|
2016-10-12 19:11:13 +03:00
|
|
|
unstable = pkgs.releaseTools.aggregate
|
|
|
|
{ name = "nixpkgs-${jobs.tarball.version}";
|
|
|
|
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
|
|
|
|
constituents =
|
|
|
|
[ jobs.tarball
|
|
|
|
jobs.metrics
|
|
|
|
jobs.manual
|
2017-04-25 03:12:43 +03:00
|
|
|
jobs.lib-tests
|
2016-10-12 19:11:13 +03:00
|
|
|
jobs.stdenv.x86_64-linux
|
|
|
|
jobs.linux.x86_64-linux
|
|
|
|
jobs.python.x86_64-linux
|
|
|
|
jobs.python3.x86_64-linux
|
|
|
|
# Needed by travis-ci to test PRs
|
|
|
|
jobs.nox.x86_64-linux
|
2017-10-14 01:50:50 +03:00
|
|
|
# Needed for support
|
|
|
|
jobs.nix-info.x86_64-linux
|
2017-10-17 16:51:51 +03:00
|
|
|
jobs.nix-info-tested.x86_64-linux
|
2016-10-12 19:11:13 +03:00
|
|
|
# Ensure that X11/GTK+ are in order.
|
|
|
|
jobs.thunderbird.x86_64-linux
|
2017-09-18 20:48:16 +03:00
|
|
|
|
|
|
|
jobs.tests.cc-wrapper.x86_64-linux
|
2018-05-02 22:19:28 +03:00
|
|
|
jobs.tests.cc-wrapper-gcc7.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-gcc8.x86_64-linux
|
2018-05-11 04:10:06 +03:00
|
|
|
|
|
|
|
# broken see issue #40038
|
|
|
|
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang-39.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-39.x86_64-linux
|
2018-02-19 07:37:38 +03:00
|
|
|
jobs.tests.cc-wrapper-clang-4.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-4.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang-5.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-5.x86_64-linux
|
2018-02-19 22:01:42 +03:00
|
|
|
jobs.tests.cc-wrapper-clang-6.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-6.x86_64-linux
|
2017-11-30 22:10:41 +03:00
|
|
|
jobs.tests.cc-multilib-gcc.x86_64-linux
|
|
|
|
jobs.tests.cc-multilib-clang.x86_64-linux
|
2017-09-18 20:48:16 +03:00
|
|
|
jobs.tests.stdenv-inputs.x86_64-linux
|
2018-07-04 18:21:33 +03:00
|
|
|
]
|
|
|
|
++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools
|
|
|
|
++ lib.optionals supportDarwin [
|
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.python.x86_64-darwin
|
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.nox.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-39.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-39.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang-4.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-4.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 20:48:16 +03:00
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2018-07-04 18:21:33 +03:00
|
|
|
];
|
2016-10-12 19:11:13 +03:00
|
|
|
};
|
2017-08-06 13:35:34 +03:00
|
|
|
|
|
|
|
stdenvBootstrapTools = with lib;
|
|
|
|
genAttrs systemsWithAnySupport
|
|
|
|
(system: {
|
2017-06-26 23:56:03 +03:00
|
|
|
inherit
|
|
|
|
(import ../stdenv/linux/make-bootstrap-tools.nix {
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
})
|
2017-08-06 13:35:34 +03:00
|
|
|
dist test;
|
|
|
|
})
|
|
|
|
# darwin is special in this
|
2018-07-04 18:21:33 +03:00
|
|
|
// optionalAttrs supportDarwin {
|
2017-08-06 13:35:34 +03:00
|
|
|
x86_64-darwin =
|
|
|
|
let
|
|
|
|
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; };
|
|
|
|
in {
|
|
|
|
# Lightweight distribution and test
|
|
|
|
inherit (bootstrap) dist test;
|
|
|
|
# Test a full stdenv bootstrap from the bootstrap tools definition
|
|
|
|
inherit (bootstrap.test-pkgs) stdenv;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
} // (mapTestOn ((packagePlatforms pkgs) // rec {
|
2015-09-15 12:46:20 +03:00
|
|
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
2015-05-29 12:25:26 +03:00
|
|
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
2018-07-13 02:07:32 +03:00
|
|
|
idrisPackages = packagePlatforms pkgs.idrisPackages;
|
2011-08-06 14:28:24 +04:00
|
|
|
|
2016-08-28 19:18:44 +03:00
|
|
|
# Language packages disabled in https://github.com/NixOS/nixpkgs/commit/ccd1029f58a3bb9eca32d81bf3f33cb4be25cc66
|
2015-11-24 12:14:16 +03:00
|
|
|
|
2016-09-18 14:34:28 +03:00
|
|
|
#emacsPackagesNg = packagePlatforms pkgs.emacsPackagesNg;
|
2016-08-28 19:18:44 +03:00
|
|
|
#rPackages = packagePlatforms pkgs.rPackages;
|
2016-02-10 15:50:31 +03:00
|
|
|
ocamlPackages = { };
|
|
|
|
perlPackages = { };
|
2017-05-07 22:35:43 +03:00
|
|
|
|
2017-08-18 00:12:51 +03:00
|
|
|
darwin = packagePlatforms pkgs.darwin // {
|
|
|
|
cf-private = {};
|
|
|
|
osx_private_sdk = {};
|
|
|
|
xcode = {};
|
|
|
|
};
|
2015-02-25 21:27:23 +03:00
|
|
|
} ));
|
2010-08-10 04:09:29 +04:00
|
|
|
|
2013-03-26 14:57:44 +04:00
|
|
|
in jobs
|