mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
fix haskellPackages.cuda and some tools dependent on cudatoolkit
This commit is contained in:
parent
1dd6e7dcbc
commit
34beeac70b
@ -64,8 +64,19 @@ self: super: builtins.intersectAttrs super {
|
|||||||
"--extra-include-dirs=${pkgs.cudatoolkit}/include"
|
"--extra-include-dirs=${pkgs.cudatoolkit}/include"
|
||||||
];
|
];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
unset CC # unconfuse the haskell-cuda configure script
|
export CUDA_PATH=${pkgs.cudatoolkit}
|
||||||
sed -i -e 's|/usr/local/cuda|${pkgs.cudatoolkit}|g' configure
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
|
nvvm = overrideCabal super.nvvm (drv: {
|
||||||
|
preConfigure = ''
|
||||||
|
export CUDA_PATH=${pkgs.cudatoolkit}
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
|
cufft = overrideCabal super.cufft (drv: {
|
||||||
|
preConfigure = ''
|
||||||
|
export CUDA_PATH=${pkgs.cudatoolkit}
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user