compiles on robins computer :)

This commit is contained in:
Robin committed 2025-01-18 20:24:15 +01:00
1 parent db1b1a60ca
commit c65af95a66
9 files changed
+46 -10

No files matched your search

+21
View File
@@ -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/";
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.