From 05977b236b2a925983224c24d6e14aed796e7a14 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 27 Oct 2016 21:01:50 -0700 Subject: [PATCH 01/25] top-level: Remove redundant parentheses --- pkgs/top-level/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 7d370bec6b5d..012db1e393b4 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -77,9 +77,9 @@ let }; trivialBuilders = self: super: - (import ../build-support/trivial-builders.nix { + import ../build-support/trivial-builders.nix { inherit lib; inherit (self) stdenv stdenvNoCC; inherit (self.xorg) lndir; - }); + }; stdenvDefault = self: super: (import ./stdenv.nix topLevelArguments) pkgs; From 68a04c1195ba8087f0f57c5b9017b38a02a8c6c1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 2 Nov 2016 18:35:03 -0400 Subject: [PATCH 02/25] top-level: Inline topLevelArugments, and make pkg named arg for stdenv [Trying my best to indent properly while avoiding excessive drift] --- pkgs/top-level/default.nix | 13 +++++++------ pkgs/top-level/stdenv.nix | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 012db1e393b4..67577aabaa4d 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -56,10 +56,6 @@ let platform = if platform_ != null then platform_ else config.platform or platformAuto; - topLevelArguments = { - inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun; - }; - # A few packages make a new package set to draw their dependencies from. # (Currently to get a cross tool chain, or forced-i686 package.) Rather than # give `all-packages.nix` all the arguments to this function, even ones that @@ -81,10 +77,15 @@ let inherit lib; inherit (self) stdenv stdenvNoCC; inherit (self.xorg) lndir; }; - stdenvDefault = self: super: (import ./stdenv.nix topLevelArguments) pkgs; + stdenvDefault = self: super: + import ./stdenv.nix { + inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun pkgs; + }; allPackages = self: super: - let res = import ./all-packages.nix topLevelArguments res self; + let res = import ./all-packages.nix + { inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun; } + res self; in res; aliases = self: super: import ./aliases.nix super; diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index c36b0fed091a..7efbfc36b1fd 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -1,5 +1,4 @@ -{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, ... }: -pkgs: +{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs, ... }: rec { allStdenvs = import ../stdenv { From eed34bd214d6f513a859f3cfc52b266a9d19898b Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 2 Nov 2016 17:08:39 -0400 Subject: [PATCH 03/25] top-level: Remove redundant arguments from top-level/{all-package,stdenv}.nix --- pkgs/top-level/all-packages.nix | 4 ++-- pkgs/top-level/default.nix | 4 ++-- pkgs/top-level/stdenv.nix | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fc4660108d00..8d7a5d204ed7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5,9 +5,9 @@ * to merges. Please use the full-text search of your editor. ;) * Hint: ### starts category names. */ -{ system, bootStdenv, noSysDirs, config, crossSystem, platform, lib +{ system, noSysDirs, config, crossSystem, platform, lib , nixpkgsFun -, ... }: +}: self: pkgs: with pkgs; diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 67577aabaa4d..baf314edece7 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -79,12 +79,12 @@ let stdenvDefault = self: super: import ./stdenv.nix { - inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun pkgs; + inherit system bootStdenv crossSystem config platform lib nixpkgsFun pkgs; }; allPackages = self: super: let res = import ./all-packages.nix - { inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun; } + { inherit system noSysDirs config crossSystem platform lib nixpkgsFun; } res self; in res; diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index 7efbfc36b1fd..f9ba5e7516ef 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -1,4 +1,4 @@ -{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs, ... }: +{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs }: rec { allStdenvs = import ../stdenv { From 936db422f9de4170458bc53b1796c6797e5bfebb Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Thu, 3 Nov 2016 17:19:25 -0700 Subject: [PATCH 04/25] add defaultConfig for mysql ruby gem The mysql gem needs the same libraries as the mysql2 gem. --- pkgs/development/ruby-modules/gem-config/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 742c9e497575..21cc80ea6bae 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -89,6 +89,10 @@ in msgpack = attrs: { buildInputs = [ libmsgpack ]; }; + + mysql = attrs: { + buildInputs = [ mysql.lib zlib openssl ]; + }; mysql2 = attrs: { buildInputs = [ mysql.lib zlib openssl ]; From 22732fc656909e589001f171bb1cbb3edd2c6937 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 1 Nov 2016 10:10:58 +0100 Subject: [PATCH 05/25] opam: remove 1.0.0 --- pkgs/development/tools/ocaml/opam/1.0.0.nix | 62 --------------------- pkgs/top-level/all-packages.nix | 1 - pkgs/top-level/ocaml-packages.nix | 1 - 3 files changed, 64 deletions(-) delete mode 100644 pkgs/development/tools/ocaml/opam/1.0.0.nix diff --git a/pkgs/development/tools/ocaml/opam/1.0.0.nix b/pkgs/development/tools/ocaml/opam/1.0.0.nix deleted file mode 100644 index d66b3880de21..000000000000 --- a/pkgs/development/tools/ocaml/opam/1.0.0.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ stdenv, lib, fetchgit, fetchurl, ocaml, unzip, ncurses, curl }: - -assert lib.versionAtLeast ocaml.version "3.12.1"; - -let - srcs = { - cudf = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/31910/cudf-0.6.3.tar.gz"; - sha256 = "6e9f1bafe859df85c854679e2904a8172945d2bf2d676c8ae3ecb72fe6de0665"; - }; - extlib = fetchurl { - url = "http://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz"; - sha256 = "c095eef4202a8614ff1474d4c08c50c32d6ca82d1015387785cf03d5913ec021"; - }; - ocaml_re = fetchurl { - url = "https://github.com/ocaml/ocaml-re/archive/ocaml-re-1.2.0.tar.gz"; - sha256 = "a34dd9d6136731436a963bbab5c4bbb16e5d4e21b3b851d34887a3dec451999f"; - }; - ocamlgraph = fetchurl { - url = "http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz"; - sha256 = "ba6388ffc2c15139b0f26330ef6dd922f0ff0f364eee99a3202bf1cd93512b43"; - }; - dose3 = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/31595/dose3-3.1.2.tar.gz"; - sha256 = "3a07a08345be157c98cb26021d7329c72c2b95c99cfdff79887690656ec9f1a3"; - }; - cmdliner = fetchurl { - url = "http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.3.tbz"; - sha256 = "5421559aa12b4debffef947f7e1039c22e9dffd87a4aa68445a687a20764ae81"; - }; - opam = fetchurl { - url = "https://github.com/OCamlPro/opam/archive/1.0.0.zip"; - sha256 = "f8d94a91c2b8d110fa5e3b0a87c512a860acbae110654498a164c5c888c40bda"; - }; - }; -in -stdenv.mkDerivation rec { - name = "opam-1.0.0"; - - buildInputs = [unzip curl ncurses ocaml]; - - src = srcs.opam; - - postUnpack = '' - ln -sv ${srcs.cudf} $sourceRoot/src_ext/${srcs.cudf.name} - ln -sv ${srcs.extlib} $sourceRoot/src_ext/${srcs.extlib.name} - ln -sv ${srcs.ocaml_re} $sourceRoot/src_ext/${srcs.ocaml_re.name} - ln -sv ${srcs.ocamlgraph} $sourceRoot/src_ext/${srcs.ocamlgraph.name} - ln -sv ${srcs.dose3} $sourceRoot/src_ext/${srcs.dose3.name} - ln -sv ${srcs.cmdliner} $sourceRoot/src_ext/${srcs.cmdliner.name} - ''; - - makeFlags = ["HOME=$(TMPDIR)"]; - - doCheck = false; - - meta = { - maintainers = [ stdenv.lib.maintainers.orbitz ]; - description = "A package manager for OCaml"; - platforms = stdenv.lib.platforms.all; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 159c90c0273a..d5f694d759f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5111,7 +5111,6 @@ in nodejs = nodejs-4_x; }; - inherit (ocaml-ng.ocamlPackages_4_01_0) opam_1_0_0; inherit (ocaml-ng.ocamlPackages_4_01_0) opam_1_1; inherit (ocamlPackages) opam; diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c8f36e14dfb7..a63d88562991 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -625,7 +625,6 @@ let ocaml-top = callPackage ../development/tools/ocaml/ocaml-top { }; - opam_1_0_0 = callPackage ../development/tools/ocaml/opam/1.0.0.nix { }; opam_1_1 = callPackage ../development/tools/ocaml/opam/1.1.nix { }; opam = callPackage ../development/tools/ocaml/opam { }; From 01597adf07afed6e48bc32e394546cfffd9e2cb4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 1 Nov 2016 10:11:31 +0100 Subject: [PATCH 06/25] opam: remove 1.1 --- pkgs/development/tools/ocaml/opam/1.1.nix | 64 ----------------------- pkgs/top-level/all-packages.nix | 1 - pkgs/top-level/ocaml-packages.nix | 1 - 3 files changed, 66 deletions(-) delete mode 100644 pkgs/development/tools/ocaml/opam/1.1.nix diff --git a/pkgs/development/tools/ocaml/opam/1.1.nix b/pkgs/development/tools/ocaml/opam/1.1.nix deleted file mode 100644 index a8a9463bb3d4..000000000000 --- a/pkgs/development/tools/ocaml/opam/1.1.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ stdenv, lib, fetchgit, fetchurl, ocaml, unzip, ncurses, curl }: - -# Opam 1.1 only works with ocaml >= 3.12.1 according to ./configure -assert lib.versionAtLeast ocaml.version "3.12.1"; - -let - srcs = { - cudf = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/31910/cudf-0.6.3.tar.gz"; - sha256 = "6e9f1bafe859df85c854679e2904a8172945d2bf2d676c8ae3ecb72fe6de0665"; - }; - extlib = fetchurl { - url = "http://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz"; - sha256 = "c095eef4202a8614ff1474d4c08c50c32d6ca82d1015387785cf03d5913ec021"; - }; - ocaml_re = fetchurl { - url = "https://github.com/ocaml/ocaml-re/archive/ocaml-re-1.2.0.tar.gz"; - sha256 = "a34dd9d6136731436a963bbab5c4bbb16e5d4e21b3b851d34887a3dec451999f"; - }; - ocamlgraph = fetchurl { - url = "http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz"; - sha256 = "ba6388ffc2c15139b0f26330ef6dd922f0ff0f364eee99a3202bf1cd93512b43"; - }; - dose3 = fetchurl { - url = "https://gforge.inria.fr/frs/download.php/31595/dose3-3.1.2.tar.gz"; - sha256 = "3a07a08345be157c98cb26021d7329c72c2b95c99cfdff79887690656ec9f1a3"; - }; - cmdliner = fetchurl { - url = "http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.3.tbz"; - sha256 = "5421559aa12b4debffef947f7e1039c22e9dffd87a4aa68445a687a20764ae81"; - }; - opam = fetchurl { - url = "https://github.com/ocaml/opam/archive/1.1.1.zip"; - sha256 = "9c69eeb448af5a38950b2664446401ce240b9f028e0b4d26b6ac1a96938a5f03"; - }; - }; -in -stdenv.mkDerivation rec { - name = "opam-1.1.1"; - - buildInputs = [unzip curl ncurses ocaml]; - - src = srcs.opam; - - postUnpack = '' - ln -sv ${srcs.cudf} $sourceRoot/src_ext/${srcs.cudf.name} - ln -sv ${srcs.extlib} $sourceRoot/src_ext/${srcs.extlib.name} - ln -sv ${srcs.ocaml_re} $sourceRoot/src_ext/${srcs.ocaml_re.name} - ln -sv ${srcs.ocamlgraph} $sourceRoot/src_ext/${srcs.ocamlgraph.name} - ln -sv ${srcs.dose3} $sourceRoot/src_ext/${srcs.dose3.name} - ln -sv ${srcs.cmdliner} $sourceRoot/src_ext/${srcs.cmdliner.name} - ''; - - # Dirty, but apparently ocp-build requires a TERM - makeFlags = ["TERM=screen"]; - - doCheck = false; - - meta = { - maintainers = [stdenv.lib.maintainers.orbitz]; - description = "A package manager for OCaml"; - platforms = stdenv.lib.platforms.all; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d5f694d759f5..dc3552787c78 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5111,7 +5111,6 @@ in nodejs = nodejs-4_x; }; - inherit (ocaml-ng.ocamlPackages_4_01_0) opam_1_1; inherit (ocamlPackages) opam; picat = callPackage ../development/compilers/picat { diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a63d88562991..c88b21355259 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -625,7 +625,6 @@ let ocaml-top = callPackage ../development/tools/ocaml/ocaml-top { }; - opam_1_1 = callPackage ../development/tools/ocaml/opam/1.1.nix { }; opam = callPackage ../development/tools/ocaml/opam { }; ocamlnat = callPackage ../development/ocaml-modules/ocamlnat { }; From f9b4c1c04ae88a3508301790987d6348a006d50a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 1 Nov 2016 10:16:45 +0100 Subject: [PATCH 07/25] opam: move out of ocamlPackages --- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/ocaml-packages.nix | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc3552787c78..d5e13f3789b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5111,7 +5111,7 @@ in nodejs = nodejs-4_x; }; - inherit (ocamlPackages) opam; + opam = callPackage ../development/tools/ocaml/opam { }; picat = callPackage ../development/compilers/picat { stdenv = overrideCC stdenv gcc49; diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c88b21355259..a2a1add4f6dc 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -625,8 +625,6 @@ let ocaml-top = callPackage ../development/tools/ocaml/ocaml-top { }; - opam = callPackage ../development/tools/ocaml/opam { }; - ocamlnat = callPackage ../development/ocaml-modules/ocamlnat { }; trv = callPackage ../development/tools/misc/trv { }; From 1ae2f86a328479c591519c935325b7b43c396e34 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sat, 5 Nov 2016 22:27:42 -0400 Subject: [PATCH 08/25] rkt: 1.17.0 -> 1.18.0 --- pkgs/applications/virtualization/rkt/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/virtualization/rkt/default.nix b/pkgs/applications/virtualization/rkt/default.nix index 7c5cc8de7abe..e22e8468e9f4 100644 --- a/pkgs/applications/virtualization/rkt/default.nix +++ b/pkgs/applications/virtualization/rkt/default.nix @@ -4,7 +4,7 @@ let # Always get the information from # https://github.com/coreos/rkt/blob/v${VERSION}/stage1/usr_from_coreos/coreos-common.mk - coreosImageRelease = "1151.0.0"; + coreosImageRelease = "1192.0.0"; coreosImageSystemdVersion = "231"; # TODO: track https://github.com/coreos/rkt/issues/1758 to allow "host" flavor. @@ -12,7 +12,7 @@ let stage1Dir = "lib/rkt/stage1-images"; in stdenv.mkDerivation rec { - version = "1.17.0"; + version = "1.18.0"; name = "rkt-${version}"; BUILDDIR="build-${name}"; @@ -20,7 +20,7 @@ in stdenv.mkDerivation rec { owner = "coreos"; repo = "rkt"; rev = "v${version}"; - sha256 = "1jbdnbd2h58zd5irllim6cfa9bf0fdk5nr8qxpjnsgd1fsyhkpld"; + sha256 = "0vvkwdpl9y0g5m00m1h7q8f95hj5qxigpxrb5zwfqrcv3clzn5a6"; }; stage1BaseImage = fetchurl { From 9972b64a8242b799342e2d32bee199372e33989d Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sun, 6 Nov 2016 09:04:13 -0500 Subject: [PATCH 09/25] darktable: 2.0.6 -> 2.0.7 --- pkgs/applications/graphics/darktable/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/darktable/default.nix b/pkgs/applications/graphics/darktable/default.nix index e75d5193fd3e..a9ad0210baa1 100644 --- a/pkgs/applications/graphics/darktable/default.nix +++ b/pkgs/applications/graphics/darktable/default.nix @@ -11,12 +11,12 @@ assert stdenv ? glibc; stdenv.mkDerivation rec { - version = "2.0.6"; + version = "2.0.7"; name = "darktable-${version}"; src = fetchurl { url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"; - sha256 = "1h9qwxyvcv0fc6y5b6l2x4jd5mmw026blhjkcihj00r1aa3c2s13"; + sha256 = "1aqxiaw89xdx0s0h3gb9nvdzw4690y3kp7h794sihf2581bn28m9"; }; buildInputs = From 6779f68a411fe21b1688f7902c4079240b6fbdda Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sun, 6 Nov 2016 09:04:49 -0500 Subject: [PATCH 10/25] lensfun: 0.2.8 -> 0.3.2 --- pkgs/development/libraries/lensfun/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/lensfun/default.nix b/pkgs/development/libraries/lensfun/default.nix index b3deabbde2db..776a7646bd70 100644 --- a/pkgs/development/libraries/lensfun/default.nix +++ b/pkgs/development/libraries/lensfun/default.nix @@ -1,16 +1,15 @@ -{ stdenv, fetchurl, pkgconfig, python, glib, zlib, libpng, gnumake3 }: +{ stdenv, fetchurl, pkgconfig, python, glib, zlib, libpng, gnumake3, cmake }: stdenv.mkDerivation rec { - name = "lensfun-0.2.8"; + version = "0.3.2"; + name = "lensfun-${version}"; src = fetchurl { - url = "mirror://sourceforge/lensfun/${name}.tar.bz2"; - sha256 = "0j0smagnksdm9gjnk13w200hjxshmxf2kvyxxnra4nc2qzxrg3zq"; + url = "mirror://sourceforge/lensfun/${version}/${name}.tar.gz"; + sha256 = "0cfk8jjhs9nbfjfdy98plrj9ayi59aph0nx6ppslgjhlcvacm2xf"; }; - patchPhase = "sed -e 's@/usr/bin/python@${python}/bin/python@' -i configure"; - - buildInputs = [ pkgconfig glib zlib libpng gnumake3 ]; + buildInputs = [ pkgconfig glib zlib libpng cmake gnumake3 ]; configureFlags = "-v"; From e22346c35ee8cb872d0587320083ba44230bd44b Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sun, 6 Nov 2016 21:27:38 -0800 Subject: [PATCH 11/25] top-level: Make stdenvCross which appears at first glance normal... ...but actually is weird just like the original --- pkgs/stdenv/cross/default.nix | 27 +++++++++++++++++++++++++++ pkgs/stdenv/default.nix | 7 +++++-- pkgs/top-level/default.nix | 7 ++++++- pkgs/top-level/stdenv.nix | 33 ++++++++++++++------------------- 4 files changed, 52 insertions(+), 22 deletions(-) create mode 100644 pkgs/stdenv/cross/default.nix diff --git a/pkgs/stdenv/cross/default.nix b/pkgs/stdenv/cross/default.nix new file mode 100644 index 000000000000..d78061db712e --- /dev/null +++ b/pkgs/stdenv/cross/default.nix @@ -0,0 +1,27 @@ +{ system, allPackages, platform, crossSystem, config, ... } @ args: + +rec { + vanillaStdenv = (import ../. (args // { + crossSystem = null; + allPackages = args: allPackages ({ crossSystem = null; } // args); + })).stdenv; + + # Yeah this isn't so cleanly just build-time packages yet. Notice the + # buildPackages <-> stdenvCross cycle. Yup, it's very weird. + # + # This works because the derivation used to build `stdenvCross` are in + # fact using `forceNativeDrv` to use the `nativeDrv` attribute of the resulting + # derivation built with `vanillaStdenv` (second argument of `makeStdenvCross`). + # + # Eventually, `forceNativeDrv` should be removed and the cycle broken. + buildPackages = allPackages { + # It's OK to change the built-time dependencies + allowCustomOverrides = true; + bootStdenv = stdenvCross; + inherit system platform crossSystem config; + }; + + stdenvCross = buildPackages.makeStdenvCross + vanillaStdenv crossSystem + buildPackages.binutilsCross buildPackages.gccCrossStageFinal; +} diff --git a/pkgs/stdenv/default.nix b/pkgs/stdenv/default.nix index 3035d87e1fc5..59088bfdf3bf 100644 --- a/pkgs/stdenv/default.nix +++ b/pkgs/stdenv/default.nix @@ -5,7 +5,7 @@ # Posix utilities, the GNU C compiler, and so on. On other systems, # we use the native C library. -{ system, allPackages ? import ../.., platform, config, lib }: +{ system, allPackages ? import ../.., platform, config, crossSystem, lib }: rec { @@ -36,10 +36,13 @@ rec { # Linux standard environment. inherit (import ./linux { inherit system allPackages platform config lib; }) stdenvLinux; - inherit (import ./darwin { inherit system allPackages platform config;}) stdenvDarwin; + inherit (import ./darwin { inherit system allPackages platform config; }) stdenvDarwin; + + inherit (import ./cross { inherit system allPackages platform crossSystem config lib; }) stdenvCross; # Select the appropriate stdenv for the platform `system'. stdenv = + if crossSystem != null then stdenvCross else if system == "i686-linux" then stdenvLinux else if system == "x86_64-linux" then stdenvLinux else if system == "armv5tel-linux" then stdenvLinux else diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index baf314edece7..73fe58ca7f34 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -12,6 +12,11 @@ # null, the default standard environment is used. bootStdenv ? null +, # This is used because stdenv replacement and the stdenvCross do benefit from + # the overridden configuration provided by the user, as opposed to the normal + # bootstrapping stdenvs. + allowCustomOverrides ? (bootStdenv == null) + , # Non-GNU/Linux OSes are currently "impure" platforms, with their libc # outside of the store. Thus, GCC, GFortran, & co. must always look for # files in standard system directories (/usr/include, etc.) @@ -109,7 +114,7 @@ let # attributes to refer to the original attributes (e.g. "foo = # ... pkgs.foo ..."). configOverrides = self: super: - lib.optionalAttrs (bootStdenv == null) + lib.optionalAttrs allowCustomOverrides ((config.packageOverrides or (super: {})) super); # The complete chain of package set builders, applied from top to bottom diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index f9ba5e7516ef..20f201869594 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -2,28 +2,23 @@ rec { allStdenvs = import ../stdenv { - inherit system platform config lib; - # TODO(@Ericson2314): hack for cross-compiling until I clean that in follow-up PR - allPackages = args: nixpkgsFun (args // { crossSystem = null; }); + inherit system platform config crossSystem lib; + allPackages = nixpkgsFun; }; defaultStdenv = allStdenvs.stdenv // { inherit platform; }; stdenv = - if bootStdenv != null then (bootStdenv // {inherit platform;}) else - if crossSystem != null then - pkgs.stdenvCross - else - let - changer = config.replaceStdenv or null; - in if changer != null then - changer { - # We import again all-packages to avoid recursivities. - pkgs = nixpkgsFun { - # We remove packageOverrides to avoid recursivities - config = removeAttrs config [ "replaceStdenv" ]; - }; - } - else - defaultStdenv; + if bootStdenv != null then + (bootStdenv // { inherit platform; }) + else if crossSystem == null && config ? replaceStdenv then + config.replaceStdenv { + # We import again all-packages to avoid recursivities. + pkgs = nixpkgsFun { + # We remove packageOverrides to avoid recursivities + config = removeAttrs config [ "replaceStdenv" ]; + }; + } + else + defaultStdenv; } From ea7bf0226825e21555eda1fd57d93762b376188d Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 27 Apr 2016 08:09:12 -0700 Subject: [PATCH 12/25] top-level: `top-level/stdenv.nix` no longer needs `pkg` argument --- pkgs/top-level/default.nix | 2 +- pkgs/top-level/stdenv.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 73fe58ca7f34..831b1db0cea3 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -84,7 +84,7 @@ let stdenvDefault = self: super: import ./stdenv.nix { - inherit system bootStdenv crossSystem config platform lib nixpkgsFun pkgs; + inherit system bootStdenv crossSystem config platform lib nixpkgsFun; }; allPackages = self: super: diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index 20f201869594..d5d9288907f7 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -1,4 +1,4 @@ -{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs }: +{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun }: rec { allStdenvs = import ../stdenv { From 6bfe04277f40a0da27fa6373edfb24a6b139548b Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 27 Apr 2016 09:09:27 -0700 Subject: [PATCH 13/25] top-level: Make config-overriden stdenv bootstrap more normally --- pkgs/stdenv/cross/default.nix | 8 ++++++-- pkgs/stdenv/custom/default.nix | 17 +++++++++++++++++ pkgs/stdenv/default.nix | 3 +++ pkgs/top-level/stdenv.nix | 15 +++------------ 4 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 pkgs/stdenv/custom/default.nix diff --git a/pkgs/stdenv/cross/default.nix b/pkgs/stdenv/cross/default.nix index d78061db712e..93c5a21d9d5a 100644 --- a/pkgs/stdenv/cross/default.nix +++ b/pkgs/stdenv/cross/default.nix @@ -1,9 +1,13 @@ { system, allPackages, platform, crossSystem, config, ... } @ args: rec { - vanillaStdenv = (import ../. (args // { + argClobber = { crossSystem = null; - allPackages = args: allPackages ({ crossSystem = null; } // args); + # Ignore custom stdenvs when cross compiling for compatability + config = builtins.removeAttrs config [ "replaceStdenv" ]; + }; + vanillaStdenv = (import ../. (args // argClobber // { + allPackages = args: allPackages (argClobber // args); })).stdenv; # Yeah this isn't so cleanly just build-time packages yet. Notice the diff --git a/pkgs/stdenv/custom/default.nix b/pkgs/stdenv/custom/default.nix new file mode 100644 index 000000000000..2f2f495b388b --- /dev/null +++ b/pkgs/stdenv/custom/default.nix @@ -0,0 +1,17 @@ +{ system, allPackages, platform, crossSystem, config, ... } @ args: + +rec { + vanillaStdenv = (import ../. (args // { + # Remove config.replaceStdenv to ensure termination. + config = builtins.removeAttrs config [ "replaceStdenv" ]; + })).stdenv; + + buildPackages = allPackages { + # It's OK to change the built-time dependencies + allowCustomOverrides = true; + bootStdenv = vanillaStdenv; + inherit system platform crossSystem config; + }; + + stdenvCustom = config.replaceStdenv { pkgs = buildPackages; }; +} diff --git a/pkgs/stdenv/default.nix b/pkgs/stdenv/default.nix index 59088bfdf3bf..10086ee6a853 100644 --- a/pkgs/stdenv/default.nix +++ b/pkgs/stdenv/default.nix @@ -40,9 +40,12 @@ rec { inherit (import ./cross { inherit system allPackages platform crossSystem config lib; }) stdenvCross; + inherit (import ./custom { inherit system allPackages platform crossSystem config lib; }) stdenvCustom; + # Select the appropriate stdenv for the platform `system'. stdenv = if crossSystem != null then stdenvCross else + if config ? replaceStdenv then stdenvCustom else if system == "i686-linux" then stdenvLinux else if system == "x86_64-linux" then stdenvLinux else if system == "armv5tel-linux" then stdenvLinux else diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index d5d9288907f7..9f485b8c90ef 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -9,16 +9,7 @@ rec { defaultStdenv = allStdenvs.stdenv // { inherit platform; }; stdenv = - if bootStdenv != null then - (bootStdenv // { inherit platform; }) - else if crossSystem == null && config ? replaceStdenv then - config.replaceStdenv { - # We import again all-packages to avoid recursivities. - pkgs = nixpkgsFun { - # We remove packageOverrides to avoid recursivities - config = removeAttrs config [ "replaceStdenv" ]; - }; - } - else - defaultStdenv; + if bootStdenv != null + then (bootStdenv // { inherit platform; }) + else defaultStdenv; } From f4e27735678f1861ecc6d73407bcd4a46ffb0ce1 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sun, 6 Nov 2016 09:05:08 -0500 Subject: [PATCH 14/25] libgphoto2: Refactor to use GitHub --- .../libraries/libgphoto2/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/libgphoto2/default.nix b/pkgs/development/libraries/libgphoto2/default.nix index a6c739017ee9..68736608ad4f 100644 --- a/pkgs/development/libraries/libgphoto2/default.nix +++ b/pkgs/development/libraries/libgphoto2/default.nix @@ -1,21 +1,24 @@ -{ stdenv, fetchurl, pkgconfig, libusb1, libtool, libexif, libjpeg, gettext }: +{ stdenv, fetchpatch, fetchFromGitHub, pkgconfig, libusb1, libtool, libexif, libjpeg, gettext, autoreconfHook }: stdenv.mkDerivation rec { name = "libgphoto2-${meta.version}"; - src = fetchurl { - url = "mirror://sourceforge/gphoto/${name}.tar.bz2"; - sha256 = "1wjf79ipqwb5phfjjwf15rwgigakylnfqaj4crs5qnds6ba6i1ld"; + src = fetchFromGitHub { + owner = "gphoto"; + repo = "libgphoto2"; + rev = "${meta.tag}"; + sha256 = "17k3jxib2jcr2wk83p34h3lvvjbs2gqhqfcngm8zmlrwb385yalh"; }; - patches = [(fetchurl { + patches = [(fetchpatch { + name = "libjpeg_turbo_1.5.0_fix.patch"; url = "https://anonscm.debian.org/cgit/pkg-phototools/libgphoto2.git/plain" + "/debian/patches/libjpeg_turbo_1.5.0_fix.patch?id=8ce79a2a02d"; - sha256 = "114iyhk6idxz2jhnzpf1glqm6d0x0y8cqfpqxz9i96q9j7x3wwin"; + sha256 = "1zclgg20nv4krj8gigq3ylirxqiv1v8p59cfji041m156hy80gy2"; })]; - nativeBuildInputs = [ pkgconfig gettext ]; - buildInputs = [ libtool libjpeg libusb1 ]; + nativeBuildInputs = [ pkgconfig gettext autoreconfHook ]; + buildInputs = [ libtool libjpeg libusb1 ]; # These are mentioned in the Requires line of libgphoto's pkg-config file. propagatedBuildInputs = [ libexif ]; @@ -31,6 +34,7 @@ stdenv.mkDerivation rec { from digital cameras. ''; version = "2.5.10"; + tag = "libgphoto2-2_5_10-release"; # XXX: the homepage claims LGPL, but several src files are lgpl21Plus license = stdenv.lib.licenses.lgpl21Plus; platforms = with stdenv.lib.platforms; unix; From a4f2d339feba9625aec71e136d8a30cd1f92f8ed Mon Sep 17 00:00:00 2001 From: Ollie Charles Date: Tue, 8 Nov 2016 10:02:06 +0000 Subject: [PATCH 15/25] haskell.compiler.ghcHEAD: Update to latest upstream --- pkgs/development/compilers/ghc/head.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index aad8a9f6bcba..31c66f175841 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -6,14 +6,14 @@ let inherit (bootPkgs) ghc; in stdenv.mkDerivation rec { - version = "8.1.20160930"; + version = "8.1.20161108"; name = "ghc-${version}"; - rev = "9e862765ffe161da8a4fd9cd67b0a600874feaa9"; + rev = "2e8463b232054b788b73e6551947a9434aa76009"; src = fetchgit { url = "git://git.haskell.org/ghc.git"; inherit rev; - sha256 = "01fmp5yrh3is8vzv2vabkzlvm1ry1zcq99m078plx9wgy20giq59"; + sha256 = "1x1vnb2zr2qrak72bdqh65d00q351yhn8xvv5i4i359cf2xjmgfd"; }; patches = [ From 9cdfb334017c6611ccd58880f9739e2649109ffa Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Nov 2016 12:42:53 +0100 Subject: [PATCH 16/25] Docs: improve Python expressions as it contained several mistakes and was just messy. --- doc/languages-frameworks/python.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md index 127614a71b75..df60cc1e5738 100644 --- a/doc/languages-frameworks/python.md +++ b/doc/languages-frameworks/python.md @@ -655,9 +655,8 @@ when you try to install a second environment. Create a file, e.g. `build.nix`, with the following expression ```nix with import {}; -with python35Packages; -python.withPackages (ps: with ps; [ numpy ipython ]) +pkgs.python35.withPackages (ps: with ps; [ numpy ipython ]) ``` and install it in your profile with ``` @@ -669,14 +668,15 @@ Now you can use the Python interpreter, as well as the extra packages that you a If you prefer to, you could also add the environment as a package override to the Nixpkgs set. ``` - packageOverrides = pkgs: with pkgs; with python35Packages; { - myEnv = python.withPackages (ps: with ps; [ numpy ipython ]); + packageOverrides = pkgs: with pkgs; { + myEnv = python35.withPackages (ps: with ps; [ numpy ipython ]); }; ``` and install it in your profile with ``` -nix-env -iA nixos.blogEnv +nix-env -iA nixpkgs.myEnv ``` +We're installing using the attribute path and assume the channels is named `nixpkgs`. Note that I'm using the attribute path here. #### Environment defined in `/etc/nixos/configuration.nix` @@ -685,7 +685,7 @@ For the sake of completeness, here's another example how to install the environm ```nix environment.systemPackages = with pkgs; [ - (python35Packages.python.withPackages (ps: callPackage ../packages/common-python-packages.nix { pythonPackages = ps; })) + (python35.withPackages(ps: with ps; [ numpy ipython ])) ]; ``` From 632282300a9ecbdd8506554aa04c516c64994c84 Mon Sep 17 00:00:00 2001 From: Philipp Hausmann Date: Tue, 8 Nov 2016 13:34:04 +0100 Subject: [PATCH 17/25] nginx service: Add missing port toString conversion (#20252) --- nixos/modules/services/web-servers/nginx/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 166e5a6b2cea..698d37133d74 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -138,7 +138,7 @@ let server_name ${serverName} ${concatStringsSep " " vhost.serverAliases}; ${acmeLocation} location / { - return 301 https://$host${optionalString (port != 443) ":${port}"}$request_uri; + return 301 https://$host${optionalString (port != 443) ":${toString port}"}$request_uri; } } ''} From bbb5f73d711c2d762940a782920fedd34e8d96fd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Nov 2016 14:58:10 +0100 Subject: [PATCH 18/25] man-pages: 4.07 -> 4.08 --- pkgs/data/documentation/man-pages/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/documentation/man-pages/default.nix b/pkgs/data/documentation/man-pages/default.nix index a488cb58e6f3..0661e6e12578 100644 --- a/pkgs/data/documentation/man-pages/default.nix +++ b/pkgs/data/documentation/man-pages/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "man-pages-${version}"; - version = "4.07"; + version = "4.08"; src = fetchurl { url = "mirror://kernel/linux/docs/man-pages/${name}.tar.xz"; - sha256 = "1vimj3va16plxmv46rw6nzw4m9l11hb7r1d217y1bjpd5q8nw8qz"; + sha256 = "1d32ki8nkwd2xiln619jihqn7s15ydrg7386n4hxq530sys7svic"; }; makeFlags = [ "MANDIR=$(out)/share/man" ]; From b0dd048cc5f52123190e936d41897851f7aa69c1 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 8 Nov 2016 14:06:51 +0000 Subject: [PATCH 19/25] hound: make mercurial indexing work (cherry picked from commit 990716ce72f64be5da644e5eac73b5f145864e75) --- nixos/modules/services/search/hound.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/search/hound.nix b/nixos/modules/services/search/hound.nix index 708f57a5eb7c..1226cba682ec 100644 --- a/nixos/modules/services/search/hound.nix +++ b/nixos/modules/services/search/hound.nix @@ -116,7 +116,7 @@ in { " -conf ${pkgs.writeText "hound.json" cfg.config}"; }; - path = [ pkgs.git ]; + path = [ pkgs.git pkgs.mercurial pkgs.openssh ]; }; }; From 01910b18014f71a008089f4ebbfeb59af4daa7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Zimmermann?= Date: Thu, 3 Nov 2016 17:34:36 +0100 Subject: [PATCH 20/25] ocamlPackage.ppx_import: init at 1.1 --- .../ocaml-modules/ppx_import/default.nix | 32 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ppx_import/default.nix diff --git a/pkgs/development/ocaml-modules/ppx_import/default.nix b/pkgs/development/ocaml-modules/ppx_import/default.nix new file mode 100644 index 000000000000..245fe3f76f66 --- /dev/null +++ b/pkgs/development/ocaml-modules/ppx_import/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchFromGitHub, buildOcaml, ocaml, opam, + cppo, ppx_tools, ounit, ppx_deriving}: + +buildOcaml rec { + name = "ppx_import"; + + version = "1.1"; + + minimumSupportedOcamlVersion = "4.02"; + + src = fetchFromGitHub { + owner = "whitequark"; + repo = "ppx_import"; + rev = "v${version}"; + sha256 = "1hfvbc81dg58q7kkpn808b3j0xazrqfrr4v71sd1yvmnk71wak6k"; + }; + + buildInputs = [ cppo ounit ppx_deriving opam ]; + + doCheck = true; + checkTarget = "test"; + + installPhase = '' + opam-installer --script --prefix=$out ppx_import.install | sh + ln -s $out/lib/ppx_import $out/lib/ocaml/${ocaml.version}/site-lib + ''; + + meta = with stdenv.lib; { + description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; + license = licenses.mit; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c8f36e14dfb7..92114a9d9235 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -416,6 +416,8 @@ let then callPackage ../development/ocaml-modules/ppx_deriving {} else null; + ppx_import = callPackage ../development/ocaml-modules/ppx_import {}; + ppx_tools = if lib.versionAtLeast ocaml.version "4.02" then callPackage ../development/ocaml-modules/ppx_tools {} From a2b018f55ad5c4c481608d887031ea72358db24c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Nov 2016 17:20:19 +0100 Subject: [PATCH 21/25] pythonPackages.hypothesis: Disable tests A random failure was preventing simp_le from reaching the channel. http://hydra.nixos.org/build/43253102 --- pkgs/top-level/python-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a51ea9dca528..f24ad5ccbaed 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12343,6 +12343,9 @@ in { buildInputs = with self; [ flake8 pytest flaky ]; propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 ]); + # Fails randomly in tests/cover/test_conjecture_engine.py::test_interleaving_engines. + doCheck = false; + # https://github.com/DRMacIver/hypothesis/issues/300 checkPhase = '' ${python.interpreter} -m pytest tests/cover From f422afd07dc7925655369a31a14f20803dc03be1 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 8 Nov 2016 17:43:33 +0100 Subject: [PATCH 22/25] errbot service: fix `import config` in plugins --- nixos/modules/services/misc/errbot.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/errbot.nix b/nixos/modules/services/misc/errbot.nix index f573be69925c..427cb7c546d0 100644 --- a/nixos/modules/services/misc/errbot.nix +++ b/nixos/modules/services/misc/errbot.nix @@ -8,7 +8,7 @@ let name = "errbot-plugins"; paths = plugins; }; - mkConfigFile = instanceCfg: dataDir: pkgs.writeText "errbot-config.py" '' + mkConfigDir = instanceCfg: dataDir: pkgs.writeTextDir "config.py" '' import logging BACKEND = '${instanceCfg.backend}' BOT_DATA_DIR = '${dataDir}' @@ -93,7 +93,7 @@ in { serviceConfig = { User = "errbot"; Restart = "on-failure"; - ExecStart = "${pkgs.errbot}/bin/errbot -c ${mkConfigFile instanceCfg dataDir}"; + ExecStart = "${pkgs.errbot}/bin/errbot -c ${mkConfigDir instanceCfg dataDir}/config.py"; PermissionsStartOnly = true; }; })) cfg.instances; From 229bac0d09077a0f2eb54e5257737fd237917411 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Tue, 8 Nov 2016 18:38:42 +0100 Subject: [PATCH 23/25] steam: Add /etc/{localtime,zoneinfo}. Some games (in my case Stardew Valley) require at least something in /etc/localtime. The actual file linked there doesn't matter as long as it's some valid timezone. --- pkgs/games/steam/chrootenv.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index c53418b65237..125566b8428c 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -9,11 +9,19 @@ let commonTargetPkgs = pkgs: with pkgs; - let primus2 = - if newStdcpp then primus else primus.override { + let + primus2 = if newStdcpp then primus else primus.override { stdenv = overrideInStdenv stdenv [ useOldCXXAbi ]; stdenv_i686 = overrideInStdenv pkgsi686Linux.stdenv [ useOldCXXAbi ]; }; + tzdir = "${pkgs.tzdata}/share/zoneinfo"; + # I'm not sure if this is the best way to add things like this + # to an FHSUserEnv + etc-zoneinfo = pkgs.runCommand "zoneinfo" {} '' + mkdir -p $out/etc + ln -s ${tzdir} $out/etc/zoneinfo + ln -s ${tzdir}/UTC $out/etc/localtime + ''; in [ steamPackages.steam-fonts # Errors in output without those @@ -26,6 +34,8 @@ let perl # Open URLs xdg_utils + # Zoneinfo + etc-zoneinfo ] ++ lib.optional withJava jdk ++ lib.optional withPrimus primus2; @@ -76,6 +86,7 @@ in buildFHSUserEnv rec { profile = '' export STEAM_RUNTIME=/steamrt + export TZDIR=/etc/zoneinfo ''; runScript = "steam"; From 4d0bba19f4e1037bcfefa9e5f0b39da00f73281e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Jourdois?= Date: Sun, 9 Oct 2016 12:14:20 +0200 Subject: [PATCH 24/25] openssh: always enable with-kerberos on darwin --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 38a2a2428477..b89d1f3a582a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3020,7 +3020,7 @@ in openssh = callPackage ../tools/networking/openssh { hpnSupport = false; - withKerberos = false; + withKerberos = stdenv.isDarwin; etcDir = "/etc/ssh"; pam = if stdenv.isLinux then pam else null; }; From 0ba3d429a758cec15545fc11c9d3fd1424c5c5f8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Nov 2016 20:35:03 +0100 Subject: [PATCH 25/25] cjdns: Disable tests Since 8180922d236c53b5e09cfe1b63f6c12977bb2803, the cjdns module imports from a derivation, which is very bad. It causes all of stdenv to be built at evaluation time. Since we have a hard 3600 second limit on Hydra evaluations, this was causing NixOS jobsets to time out. @joachifm --- nixos/release.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/release.nix b/nixos/release.nix index 639ee45b38d6..5687d5b0e6e6 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -221,7 +221,7 @@ in rec { tests.boot-stage1 = callTest tests/boot-stage1.nix {}; tests.cadvisor = hydraJob (import tests/cadvisor.nix { system = "x86_64-linux"; }); tests.chromium = (callSubTests tests/chromium.nix { system = "x86_64-linux"; }).stable; - tests.cjdns = callTest tests/cjdns.nix {}; + #tests.cjdns = callTest tests/cjdns.nix {}; tests.containers-ipv4 = callTest tests/containers-ipv4.nix {}; tests.containers-ipv6 = callTest tests/containers-ipv6.nix {}; tests.containers-bridge = callTest tests/containers-bridge.nix {};