diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-09 11:08:58 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-09 11:08:58 +0200 |
commit | 3c2778f440a48ec809b6c9d176c393cbefbee69d (patch) | |
tree | 96894a8209936212a489f943db8c3a72df714647 /examples/cavity_2d_gpu/.nix | |
parent | 7ff6ea3bde6eb1d3b55c558303c48e065c38199b (diff) |
Isolating the gpu setup
Diffstat (limited to 'examples/cavity_2d_gpu/.nix')
-rw-r--r-- | examples/cavity_2d_gpu/.nix/derivation.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/cavity_2d_gpu/.nix/derivation.nix b/examples/cavity_2d_gpu/.nix/derivation.nix new file mode 100644 index 0000000..a98795b --- /dev/null +++ b/examples/cavity_2d_gpu/.nix/derivation.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, scons +, clang-tools +, forstio +, pname +, version +}: + +stdenv.mkDerivation { + inherit pname version; + src = ./..; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.codec + forstio.codec-unit + forstio.codec-json + ]; + + doCheck = true; + checkPhase = '' + scons test + ./bin/tests + ''; + + preferLocalBuild = true; + + outputs = [ "out" "dev" ]; +} |