2013-03-26 04:02:29 -06: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 08:21:52 -06:00
|
|
|
*/
|
2017-03-23 17:18:43 -06:00
|
|
|
{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
|
2013-03-26 04:57:44 -06:00
|
|
|
, officialRelease ? false
|
2017-08-03 06:09:30 -06:00
|
|
|
# The platforms for which we build Nixpkgs.
|
2017-08-06 02:53:26 -06:00
|
|
|
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ]
|
2017-08-03 06:09:30 -06: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.
|
|
|
|
, nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
|
2013-03-26 04:57:44 -06:00
|
|
|
}:
|
|
|
|
|
2017-02-27 09:20:25 -07:00
|
|
|
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
|
2008-11-28 03:56:36 -07:00
|
|
|
|
2013-03-26 04:57:44 -06:00
|
|
|
let
|
2017-08-03 06:09:30 -06:00
|
|
|
|
|
|
|
systemsWithAnySupport = supportedSystems ++ limitedSupportedSystems;
|
|
|
|
|
2013-03-26 04:57:44 -06:00
|
|
|
jobs =
|
2016-10-12 10:11:13 -06:00
|
|
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease; };
|
2013-03-26 04:57:44 -06:00
|
|
|
|
2016-03-24 10:36:26 -06:00
|
|
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
|
|
|
|
2014-08-24 03:02:23 -06:00
|
|
|
manual = import ../../doc;
|
2017-04-24 18:12:43 -06:00
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit pkgs; };
|
2014-08-24 03:02:23 -06:00
|
|
|
|
2017-04-10 10:29:11 -06:00
|
|
|
darwin-tested = pkgs.releaseTools.aggregate
|
|
|
|
{ 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 11:48:16 -06:00
|
|
|
jobs.emacs.x86_64-darwin
|
|
|
|
jobs.ghc.x86_64-darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.go.x86_64-darwin
|
|
|
|
jobs.mysql.x86_64-darwin
|
|
|
|
jobs.nix-repl.x86_64-darwin
|
|
|
|
jobs.nix.x86_64-darwin
|
|
|
|
jobs.nox.x86_64-darwin
|
2017-10-13 16:50:50 -06:00
|
|
|
jobs.nix-info.x86_64-darwin
|
2017-10-17 07:51:51 -06:00
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
2017-09-18 11:48:16 -06:00
|
|
|
jobs.openssh.x86_64-darwin
|
|
|
|
jobs.openssl.x86_64-darwin
|
|
|
|
jobs.postgresql.x86_64-darwin
|
2017-04-10 10:29:11 -06:00
|
|
|
jobs.python.x86_64-darwin
|
2017-09-18 11:48:16 -06:00
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
jobs.ruby.x86_64-darwin
|
2017-04-10 10:29:11 -06:00
|
|
|
jobs.rustc.x86_64-darwin
|
2017-09-18 11:48:16 -06:00
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
|
|
|
|
|
|
|
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-03 16:18:59 -06:00
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2017-04-10 10:29:11 -06:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2016-10-12 10:11:13 -06: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-24 18:12:43 -06:00
|
|
|
jobs.lib-tests
|
2016-10-12 10:11:13 -06:00
|
|
|
jobs.stdenv.x86_64-linux
|
|
|
|
jobs.stdenv.x86_64-darwin
|
|
|
|
jobs.linux.x86_64-linux
|
|
|
|
jobs.python.x86_64-linux
|
|
|
|
jobs.python.x86_64-darwin
|
|
|
|
jobs.python3.x86_64-linux
|
|
|
|
jobs.python3.x86_64-darwin
|
|
|
|
# Many developers use nix-repl
|
|
|
|
jobs.nix-repl.x86_64-linux
|
|
|
|
jobs.nix-repl.x86_64-darwin
|
|
|
|
# Needed by travis-ci to test PRs
|
|
|
|
jobs.nox.x86_64-linux
|
|
|
|
jobs.nox.x86_64-darwin
|
2017-10-13 16:50:50 -06:00
|
|
|
# Needed for support
|
|
|
|
jobs.nix-info.x86_64-linux
|
|
|
|
jobs.nix-info.x86_64-darwin
|
2017-10-17 07:51:51 -06:00
|
|
|
jobs.nix-info-tested.x86_64-linux
|
|
|
|
jobs.nix-info-tested.x86_64-darwin
|
2016-10-12 10:11:13 -06:00
|
|
|
# Ensure that X11/GTK+ are in order.
|
|
|
|
jobs.thunderbird.x86_64-linux
|
|
|
|
# Ensure that basic stuff works on darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.mysql.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
2017-09-18 11:48:16 -06:00
|
|
|
|
|
|
|
jobs.tests.cc-wrapper.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-clang-39.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-clang-39.x86_64-darwin
|
|
|
|
jobs.tests.cc-wrapper-libcxx-39.x86_64-linux
|
|
|
|
jobs.tests.cc-wrapper-libcxx-39.x86_64-darwin
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-linux
|
|
|
|
jobs.tests.stdenv-inputs.x86_64-darwin
|
|
|
|
jobs.tests.macOSSierraShared.x86_64-darwin
|
2017-04-24 18:12:43 -06:00
|
|
|
] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
|
2016-10-12 10:11:13 -06:00
|
|
|
};
|
2017-08-06 04:35:34 -06:00
|
|
|
|
|
|
|
stdenvBootstrapTools = with lib;
|
|
|
|
genAttrs systemsWithAnySupport
|
|
|
|
(system: {
|
|
|
|
inherit (import ../stdenv/linux/make-bootstrap-tools.nix { inherit system; })
|
|
|
|
dist test;
|
|
|
|
})
|
|
|
|
# darwin is special in this
|
|
|
|
// optionalAttrs (builtins.elem "x86_64-darwin" systemsWithAnySupport) {
|
|
|
|
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 03:46:20 -06:00
|
|
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
2015-05-29 03:25:26 -06:00
|
|
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
2011-08-06 04:28:24 -06:00
|
|
|
|
2016-08-28 10:18:44 -06:00
|
|
|
# Language packages disabled in https://github.com/NixOS/nixpkgs/commit/ccd1029f58a3bb9eca32d81bf3f33cb4be25cc66
|
2015-11-24 02:14:16 -07:00
|
|
|
|
2016-09-18 05:34:28 -06:00
|
|
|
#emacsPackagesNg = packagePlatforms pkgs.emacsPackagesNg;
|
2016-08-28 10:18:44 -06:00
|
|
|
#rPackages = packagePlatforms pkgs.rPackages;
|
2016-02-10 05:50:31 -07:00
|
|
|
ocamlPackages = { };
|
|
|
|
perlPackages = { };
|
2017-05-07 13:35:43 -06:00
|
|
|
|
2017-08-17 15:12:51 -06:00
|
|
|
darwin = packagePlatforms pkgs.darwin // {
|
|
|
|
cf-private = {};
|
|
|
|
osx_private_sdk = {};
|
|
|
|
xcode = {};
|
|
|
|
};
|
2015-02-25 11:27:23 -07:00
|
|
|
} ));
|
2010-08-09 18:09:29 -06:00
|
|
|
|
2013-03-26 04:57:44 -06:00
|
|
|
in jobs
|