Skip to content
4 changes: 2 additions & 2 deletions pkgs/applications/misc/blender/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ stdenv, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
{ config, stdenv, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
, ilmbase, libXi, libX11, libXext, libXrender
, libjpeg, libpng, libsamplerate, libsndfile
, libtiff, libGLU_combined, openal, opencolorio, openexr, openimageio, openjpeg_1, pythonPackages
, zlib, fftw, opensubdiv, freetype, jemalloc, ocl-icd
, jackaudioSupport ? false, libjack2
, cudaSupport ? false, cudatoolkit
, cudaSupport ? config.cudaSupport or false, cudatoolkit
, colladaSupport ? true, opencollada
, enableNumpy ? false, makeWrapper
}:
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/science/math/caffe/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, runCommand
{ config, stdenv, lib, runCommand
, fetchFromGitHub
, fetchurl
, cmake
Expand All @@ -13,8 +13,8 @@
, Accelerate, CoreGraphics, CoreVideo
, lmdbSupport ? true, lmdb
, leveldbSupport ? true, leveldb, snappy
, cudaSupport ? stdenv.isLinux, cudatoolkit
, cudnnSupport ? false, cudnn ? null
, cudaSupport ? config.cudaSupport or false, cudatoolkit
, cudnnSupport ? cudaSupport, cudnn ? null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to change the default on Linux here? Given it is Deep Learning, running it CPU-only might be too painful to be useful…

, ncclSupport ? false, nccl ? null
, pythonSupport ? false, python ? null, numpy ? null
}:
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/science/math/cntk/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ lib, stdenv, fetchgit, fetchFromGitHub, cmake
{ config, lib, stdenv, fetchgit, fetchFromGitHub, cmake
, openblas, opencv3, libzip, boost, protobuf, openmpi
, onebitSGDSupport ? false
, cudaSupport ? false, cudatoolkit, nvidia_x11
, cudnnSupport ? false, cudnn
, cudaSupport ? config.cudaSupport or false, cudatoolkit, nvidia_x11
, cudnnSupport ? cudaSupport, cudnn
}:

assert cudnnSupport -> cudaSupport;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/science/math/mxnet/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, bash, cmake
{ config, stdenv, lib, fetchurl, bash, cmake
, opencv, gtest, openblas, liblapack, perl
, cudaSupport ? false, cudatoolkit, nvidia_x11
, cudnnSupport ? false, cudnn
, cudaSupport ? config.cudaSupport or false, cudatoolkit, nvidia_x11
, cudnnSupport ? cudaSupport, cudnn
}:

assert cudnnSupport -> cudaSupport;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, glib, dbus-glib
, desktopSupport, xorg
, desktopSupport ? "gnomeflashback", xorg
, gtk2
, gtk3, gnome3, mate
, libxfce4util, xfce4-panel
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/compilers/gnu-smalltalk/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ stdenv, fetchurl, pkgconfig, libtool, zip, libffi, libsigsegv, readline, gmp,
gnutls, gnome2, cairo, SDL, sqlite, emacsSupport ? false, emacs ? null }:
{ config, stdenv, fetchurl, pkgconfig, libtool
, zip, libffi, libsigsegv, readline, gmp
, gnutls, gnome2, cairo, SDL, sqlite
, emacsSupport ? config.emacsSupport or false, emacs ? null }:

assert emacsSupport -> (emacs != null);

Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/libraries/cairo/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{ stdenv, fetchurl, pkgconfig, libiconv
{ config, stdenv, fetchurl, pkgconfig, libiconv
, libintl, expat, zlib, libpng, pixman, fontconfig, freetype, xorg
, gobjectSupport ? true, glib
, xcbSupport ? true # no longer experimental since 1.12
, glSupport ? true, libGL ? null # libGLU_combined is no longer a big dependency
, libGLSupported
, glSupport ? config.cairo.gl or (libGLSupported && stdenv.isLinux && !stdenv.isAarch32 && !stdenv.isMips)
, libGL ? null # libGLU_combined is no longer a big dependency
, pdfSupport ? true
, darwin
}:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/gtk+/2.x.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, gettext, glib, atk, pango, cairo, perl, xorg
{ config, stdenv, fetchurl, pkgconfig, gettext, glib, atk, pango, cairo, perl, xorg
, gdk_pixbuf, xlibsWrapper, gobject-introspection
, xineramaSupport ? stdenv.isLinux
, cupsSupport ? true, cups ? null
, cupsSupport ? config.gtk2.cups or stdenv.isLinux, cups ? null
, gdktarget ? if stdenv.isDarwin then "quartz" else "x11"
, AppKit, Cocoa
, fetchpatch
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libtensorflow/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv
{ config, stdenv
, fetchurl
, patchelf
, cudaSupport ? false, symlinkJoin, cudatoolkit, cudnn, nvidia_x11
, cudaSupport ? config.cudaSupport or false, symlinkJoin, cudatoolkit, cudnn, nvidia_x11
}:
with stdenv.lib;
let
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/opensubdiv/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, xorg, libGLU
{ config, lib, stdenv, fetchFromGitHub, cmake, pkgconfig, xorg, libGLU
, libGL, glew, ocl-icd, python3
, cudaSupport ? false, cudatoolkit
, cudaSupport ? config.cudaSupport or false, cudatoolkit
, darwin
}:

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/xgboost/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, lib, fetchgit, cmake
, cudaSupport ? false, cudatoolkit
{ config, stdenv, lib, fetchgit, cmake
, cudaSupport ? config.cudaSupport or false, cudatoolkit
, ncclSupport ? false, nccl
, llvmPackages
}:
Expand Down
13 changes: 6 additions & 7 deletions pkgs/os-specific/linux/pcmciautils/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{ stdenv, fetchurl
{ config, lib, stdenv, fetchurl
, yacc, flex
, sysfsutils, kmod, udev
, firmware # Special pcmcia cards.
, config # Special hardware (map memory & port & irq)
, lib # used to generate postInstall script.
}:
, firmware ? config.pcmciaUtils.firmware or [] # Special pcmcia cards.
, configOpts ? config.pcmciaUtils.config or null # Special hardware (map memory & port & irq)
}: # used to generate postInstall script.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how to find out how many users will be hit by such an incompatible rename.


# FIXME: should add an option to choose between hotplug and udev.
stdenv.mkDerivation rec {
Expand All @@ -28,8 +27,8 @@ stdenv.mkDerivation rec {
" src/{startup.c,pcmcia-check-broken-cis.c} # fix-color */
''
+ (if firmware == [] then ''sed -i "s,STARTUP = true,STARTUP = false," Makefile'' else "")
+ (if config == null then "" else ''
ln -sf ${config} ./config/config.opts'')
+ (if configOpts == null then "" else ''
ln -sf ${configOpts} ./config/config.opts'')
;

makeFlags = "LEX=flex";
Expand Down
49 changes: 11 additions & 38 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,6 @@ in
tensor = libsForQt5.callPackage ../applications/networking/instant-messengers/tensor { };

libtensorflow = callPackage ../development/libraries/libtensorflow {
cudaSupport = config.cudaSupport or false;
inherit (linuxPackages) nvidia_x11;
cudatoolkit = cudatoolkit_9_0;
cudnn = cudnn_cudatoolkit_9_0;
Expand Down Expand Up @@ -6906,9 +6905,7 @@ in
inherit (gnome2) libart_lgpl;
});

gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk {
emacsSupport = config.emacsSupport or false;
};
gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { };

gccgo = gccgo6;
gccgo6 = wrapCC (gcc6.cc.override {
Expand Down Expand Up @@ -10119,11 +10116,7 @@ in

pixman = callPackage ../development/libraries/pixman { };

cairo = callPackage ../development/libraries/cairo {
glSupport = config.cairo.gl or (stdenv.isLinux &&
!stdenv.isAarch32 && !stdenv.isMips);
};

cairo = callPackage ../development/libraries/cairo { };

cairomm = callPackage ../development/libraries/cairomm { };

Expand Down Expand Up @@ -10151,7 +10144,6 @@ in
elementary-cmake-modules = callPackage ../development/libraries/elementary-cmake-modules { };

gtk2 = callPackage ../development/libraries/gtk+/2.x.nix {
cupsSupport = config.gtk2.cups or stdenv.isLinux;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
};

Expand Down Expand Up @@ -11867,7 +11859,6 @@ in
openssl-chacha = callPackage ../development/libraries/openssl/chacha.nix { };

opensubdiv = callPackage ../development/libraries/opensubdiv {
cudaSupport = config.cudaSupport or false;
cmake = cmake_2_8;
};

Expand Down Expand Up @@ -12995,9 +12986,7 @@ in

xalanc = callPackage ../development/libraries/xalanc {};

xgboost = callPackage ../development/libraries/xgboost {
cudaSupport = config.cudaSupport or false;
};
xgboost = callPackage ../development/libraries/xgboost { };

xgeometry-select = callPackage ../tools/X11/xgeometry-select { };

Expand Down Expand Up @@ -15003,10 +14992,7 @@ in

pax-utils = callPackage ../os-specific/linux/pax-utils { };

pcmciaUtils = callPackage ../os-specific/linux/pcmciautils {
firmware = config.pcmciaUtils.firmware or [];
config = config.pcmciaUtils.config or null;
};
pcmciaUtils = callPackage ../os-specific/linux/pcmciautils { };

pcstat = callPackage ../tools/system/pcstat { };

Expand Down Expand Up @@ -16187,7 +16173,6 @@ in
bleachbit = callPackage ../applications/misc/bleachbit { };

blender = callPackage ../applications/misc/blender {
cudaSupport = config.cudaSupport or false;
pythonPackages = python35Packages;
stdenv = overrideCC stdenv gcc6;
};
Expand Down Expand Up @@ -20166,18 +20151,15 @@ in
};

xmonad_log_applet = callPackage ../applications/window-managers/xmonad/log-applet {
desktopSupport = "gnomeflashback";
inherit (xfce) libxfce4util xfce4-panel;
};

xmonad_log_applet_mate = xmonad_log_applet.override {
desktopSupport = "mate";
inherit (xfce) libxfce4util xfce4-panel;
};

xmonad_log_applet_xfce = xmonad_log_applet.override {
desktopSupport = "xfce4";
inherit (xfce) libxfce4util xfce4-panel;
};

xmpp-client = callPackage ../applications/networking/instant-messengers/xmpp-client { };
Expand Down Expand Up @@ -21855,28 +21837,21 @@ in

### SCIENCE / MATH

caffe = callPackage ../applications/science/math/caffe rec {
cudaSupport = config.caffe.cudaSupport or config.cudaSupport or false;
cudnnSupport = cudaSupport;
# Used only for image loading.
opencv3 = opencv3WithoutCuda;
caffe = callPackage ../applications/science/math/caffe ({
opencv3 = opencv3WithoutCuda; # Used only for image loading.
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
};
} // (config.caffe or {}));

caffe2 = callPackage ../development/libraries/science/math/caffe2 (rec {
inherit (python36Packages) python future six numpy pydot;
protobuf = protobuf3_1;
python-protobuf = python36Packages.protobuf.override { inherit protobuf; };
# Used only for image loading.
opencv3 = opencv3WithoutCuda;
opencv3 = opencv3WithoutCuda; # Used only for image loading.
});

cntk = callPackage ../applications/science/math/cntk rec {
cudaSupport = pkgs.config.cudaSupport or false;
cudnnSupport = cudaSupport;
cntk = callPackage ../applications/science/math/cntk {
inherit (linuxPackages) nvidia_x11;
# Used only for image loading.
opencv3 = opencv3WithoutCuda;
opencv3 = opencv3WithoutCuda; # Used only for image loading.
};

ecm = callPackage ../applications/science/math/ecm { };
Expand Down Expand Up @@ -21907,9 +21882,7 @@ in
sbcl = null;
};

mxnet = callPackage ../applications/science/math/mxnet rec {
cudaSupport = config.cudaSupport or false;
cudnnSupport = cudaSupport;
mxnet = callPackage ../applications/science/math/mxnet {
inherit (linuxPackages) nvidia_x11;
};

Expand Down