A template for OpenCL projects in Rust.
- OpenCL's ICD loader
Create default.nix
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
ocl-icd
];
}
Then build with cargo
nix-shell . --command "cargo build"