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
|
|
|
*/
|
2013-03-26 11:02:29 +01:00
|
|
|
|
2016-06-22 10:39:50 +02:00
|
|
|
{ nixpkgs ? { outPath = (import ../.. {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
|
2013-03-26 11:57:44 +01:00
|
|
|
, officialRelease ? false
|
2016-08-28 18:18:44 +02:00
|
|
|
# The platforms for which we build Nixpkgs.
|
|
|
|
, supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]
|
|
|
|
# Strip most of attributes when evaluating to spare memory usage
|
2015-12-16 13:59:02 +01:00
|
|
|
, scrubJobs ? true
|
2013-03-26 11:57:44 +01:00
|
|
|
}:
|
|
|
|
|
2015-12-16 13:59:02 +01:00
|
|
|
with import ./release-lib.nix { inherit supportedSystems scrubJobs; };
|
2008-11-28 11:56:36 +01:00
|
|
|
|
2013-03-26 11:57:44 +01:00
|
|
|
let
|
|
|
|
|
2015-10-23 13:04:10 +02:00
|
|
|
lib = pkgs.lib;
|
|
|
|
|
2013-03-26 11:57:44 +01:00
|
|
|
jobs =
|
2015-10-23 13:04:10 +02:00
|
|
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease; };
|
2013-03-26 11:57:44 +01:00
|
|
|
|
2016-03-24 17:36:26 +01:00
|
|
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
|
|
|
|
2014-08-24 11:02:23 +02:00
|
|
|
manual = import ../../doc;
|
2015-04-29 11:27:30 +02:00
|
|
|
lib-tests = import ../../lib/tests/release.nix { inherit nixpkgs; };
|
2014-08-24 11:02:23 +02:00
|
|
|
|
2013-03-26 11:57:44 +01:00
|
|
|
unstable = pkgs.releaseTools.aggregate
|
|
|
|
{ name = "nixpkgs-${jobs.tarball.version}";
|
|
|
|
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
|
2013-08-15 02:29:08 +02:00
|
|
|
constituents =
|
2013-03-26 11:57:44 +01:00
|
|
|
[ jobs.tarball
|
2016-03-24 17:38:58 +01:00
|
|
|
jobs.metrics
|
2014-08-24 18:53:29 +02:00
|
|
|
jobs.manual
|
2015-04-29 11:27:30 +02:00
|
|
|
jobs.lib-tests
|
2013-03-26 11:57:44 +01:00
|
|
|
jobs.stdenv.x86_64-linux
|
|
|
|
jobs.stdenv.i686-linux
|
2015-01-06 11:55:22 +01:00
|
|
|
jobs.stdenv.x86_64-darwin
|
2013-03-26 11:57:44 +01:00
|
|
|
jobs.linux.x86_64-linux
|
|
|
|
jobs.linux.i686-linux
|
2016-01-21 20:06:57 +01:00
|
|
|
jobs.python.x86_64-linux
|
|
|
|
jobs.python.i686-linux
|
|
|
|
jobs.python.x86_64-darwin
|
|
|
|
jobs.python3.x86_64-linux
|
|
|
|
jobs.python3.i686-linux
|
|
|
|
jobs.python3.x86_64-darwin
|
2016-08-05 11:53:57 +02:00
|
|
|
# Many developers use nix-repl
|
|
|
|
jobs.nix-repl.x86_64-linux
|
|
|
|
jobs.nix-repl.i686-linux
|
|
|
|
jobs.nix-repl.x86_64-darwin
|
2016-05-31 13:59:24 +02:00
|
|
|
# Needed by travis-ci to test PRs
|
|
|
|
jobs.nox.i686-linux
|
|
|
|
jobs.nox.x86_64-linux
|
|
|
|
jobs.nox.x86_64-darwin
|
2013-03-26 11:57:44 +01:00
|
|
|
# Ensure that X11/GTK+ are in order.
|
|
|
|
jobs.thunderbird.x86_64-linux
|
|
|
|
jobs.thunderbird.i686-linux
|
2016-01-06 13:25:05 +01:00
|
|
|
# Ensure that basic stuff works on darwin
|
|
|
|
jobs.git.x86_64-darwin
|
|
|
|
jobs.mysql.x86_64-darwin
|
|
|
|
jobs.vim.x86_64-darwin
|
2015-10-23 13:04:10 +02:00
|
|
|
] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
|
2013-03-26 11:57:44 +01:00
|
|
|
};
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2015-10-23 13:04:10 +02:00
|
|
|
stdenvBootstrapTools.i686-linux =
|
|
|
|
{ inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "i686-linux"; }) dist test; };
|
|
|
|
|
|
|
|
stdenvBootstrapTools.x86_64-linux =
|
|
|
|
{ inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "x86_64-linux"; }) dist test; };
|
|
|
|
|
|
|
|
stdenvBootstrapTools.x86_64-darwin =
|
2016-01-06 13:25:05 +01:00
|
|
|
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;
|
|
|
|
};
|
2015-10-23 13:04:10 +02:00
|
|
|
|
2015-03-20 18:16:43 +01:00
|
|
|
} // (mapTestOn ((packagePlatforms pkgs) // rec {
|
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;
|
2011-08-06 12:28:24 +02:00
|
|
|
|
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
|
|
|
|
2016-09-18 13:34:28 +02:00
|
|
|
#emacsPackagesNg = packagePlatforms pkgs.emacsPackagesNg;
|
2016-08-28 18:18:44 +02:00
|
|
|
#rPackages = packagePlatforms pkgs.rPackages;
|
2016-02-10 13:50:31 +01:00
|
|
|
ocamlPackages = { };
|
|
|
|
perlPackages = { };
|
2016-05-10 17:15:12 +02:00
|
|
|
pythonPackages = {
|
|
|
|
pandas = unix;
|
2016-05-11 12:35:51 +02:00
|
|
|
scikitlearn = unix;
|
2016-05-10 17:15:12 +02:00
|
|
|
};
|
2016-02-10 13:50:31 +01:00
|
|
|
python2Packages = { };
|
|
|
|
python27Packages = { };
|
|
|
|
python3Packages = { };
|
2016-05-19 12:05:39 +02:00
|
|
|
python35Packages = {
|
|
|
|
blaze = unix;
|
|
|
|
pandas = unix;
|
|
|
|
scikitlearn = unix;
|
|
|
|
};
|
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
|