mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
compiles on robins computer :)
This commit is contained in:
1 parent
db1b1a60ca
commit
c65af95a66
9 files changed
+46
-10
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
with import <nixpkgs> { config.allowUnfree = true; };
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cuda-raytracer";
|
||||
src = ./.;
|
||||
nativeBuildInputs = with cudaPackages; [cmake autoAddDriverRunpath autoPatchelfHook ];
|
||||
buildInputs = with pkgs; with cudaPackages; [ libGL glfw netcdf netcdfcxx4 cuda_nvcc cuda_cudart cuda_cccl libcurand];
|
||||
|
||||
postConfigure = ''
|
||||
export netCDFCxx_DIR=${netcdfcxx4}/lib/cmake/netCDFCxx
|
||||
'';
|
||||
|
||||
installTargets = "preinstall";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
cp cuda-raytracer $out/bin
|
||||
'';
|
||||
|
||||
LD_LIBRARY_PATH="/run/opengl-driver/lib/";
|
||||
}
|
||||