summary refs log tree commit diff
path: root/pkgs/development/r-modules/default.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2015-09-04 12:29:22 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-09-10 10:35:40 +0200
commit22321f2e58335cd39051c9403975b1015cfa68e0 (patch)
tree0a15a269aea5103200e6a5115454178aab55f0ee /pkgs/development/r-modules/default.nix
parent220e02506fe2ad533eec8b4381f29e52326d2982 (diff)
downloadnixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar.gz
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar.bz2
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar.lz
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar.xz
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.tar.zst
nixlib-22321f2e58335cd39051c9403975b1015cfa68e0.zip
cudatoolkit: don't move $out/include to $out/usr_include
This effectively reverts 86c283824f76d849acbe6
("If cuda headers are presented to nix [...]") and all the following
workarounds that was added due to that commit.

As far as I can tell[1] this hack isn't needed anymore. And moving
includes to $out/usr_include causes pain for cudatoolkit users, so
better get rid of it.

In patches that did more than the $out/usr_include workaround, I only
changed the line back to $out/include instead of re-generating the
patches and fully removing the changed line.

[1]: I build tested blender and caffe, and temporarily added
recurseIntoAttrs to rPackages and haskellPackages so that nox-review
could get proper coverage. However, many of the packages do not build
even before this patch. I also built CUDA samples with cudatoolkit7
that ran fine.
Diffstat (limited to 'pkgs/development/r-modules/default.nix')
-rw-r--r--pkgs/development/r-modules/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix
index c24d5af7ddfb..62d39d768f9f 100644
--- a/pkgs/development/r-modules/default.nix
+++ b/pkgs/development/r-modules/default.nix
@@ -1566,7 +1566,6 @@ let
     });
 
     iFes = old.iFes.overrideDerivation (attrs: {
-      patches = [ ./patches/iFes.patch ];
       CUDA_HOME = "${pkgs.cudatoolkit}";
     });
 
@@ -1661,7 +1660,7 @@ let
       patches = [ ./patches/gmatrix.patch ];
       CUDA_LIB_PATH = "${pkgs.cudatoolkit}/lib64";
       R_INC_PATH = "${pkgs.R}/lib/R/include";
-      CUDA_INC_PATH = "${pkgs.cudatoolkit}/usr_include";
+      CUDA_INC_PATH = "${pkgs.cudatoolkit}/include";
     });
 
     # It seems that we cannot override meta attributes with overrideDerivation.