3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #27615 from NickHu/cuda

fix haskellPackages.cuda and some tools dependent on cudatoolkit
This commit is contained in:
Domen Kožar 2017-08-07 16:13:49 +02:00 committed by GitHub
commit 4f80406fdd

View file

@ -64,8 +64,19 @@ self: super: builtins.intersectAttrs super {
"--extra-include-dirs=${pkgs.cudatoolkit}/include"
];
preConfigure = ''
unset CC # unconfuse the haskell-cuda configure script
sed -i -e 's|/usr/local/cuda|${pkgs.cudatoolkit}|g' configure
export CUDA_PATH=${pkgs.cudatoolkit}
'';
});
nvvm = overrideCabal super.nvvm (drv: {
preConfigure = ''
export CUDA_PATH=${pkgs.cudatoolkit}
'';
});
cufft = overrideCabal super.cufft (drv: {
preConfigure = ''
export CUDA_PATH=${pkgs.cudatoolkit}
'';
});