summary refs log tree commit diff
path: root/pkgs/applications/science/math/mxnet/default.nix
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-07-20 18:08:19 +0300
committerSomeone Serge <sergei.kozlukov@aalto.fi>2023-07-20 18:08:19 +0300
commit471dbe9bcfb844fb045f5591c35967f15e161657 (patch)
tree91a50a71a98c4aed259de0a2548b21ae3891b55d /pkgs/applications/science/math/mxnet/default.nix
parent133993211b39907a09986b338e9394908de223f2 (diff)
downloadnixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar.gz
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar.bz2
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar.lz
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar.xz
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.tar.zst
nixpkgs-471dbe9bcfb844fb045f5591c35967f15e161657.zip
treewide: consume config.cudaSupport as required
Eliminate uses of `config.cudaSupport or false` and alike, since the
option is now declared in config.nix with a default value

fd .nix -t f -x sed 's/config\.cudaSupport or false, cudaPackages [?] [{][}]/config.cudaSupport, cudaPackages ? { }/' '{}' -i
fd .nix -t f -x sed 's/config\.cudaSupport or false/config.cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = pkgs.config.cudaSupport/inherit (pkgs.config) cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = config.cudaSupport/inherit (config) cudaSupport/' '{}' -i
Diffstat (limited to 'pkgs/applications/science/math/mxnet/default.nix')
-rw-r--r--pkgs/applications/science/math/mxnet/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/mxnet/default.nix b/pkgs/applications/science/math/mxnet/default.nix
index 240a1759397..1e7af371c50 100644
--- a/pkgs/applications/science/math/mxnet/default.nix
+++ b/pkgs/applications/science/math/mxnet/default.nix
@@ -1,6 +1,6 @@
 { config, stdenv, lib, fetchurl, fetchpatch, bash, cmake
 , opencv3, gtest, blas, gomp, llvmPackages, perl
-, cudaSupport ? config.cudaSupport or false, cudaPackages ? {}, nvidia_x11
+, cudaSupport ? config.cudaSupport, cudaPackages ? { }, nvidia_x11
 , cudnnSupport ? cudaSupport
 }: