summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_2d_gpu/.nix/derivation.nix
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-06-02 20:20:48 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-06-02 20:20:48 +0200
commit5ea4875b96bfacd4c5f0125c9e7b64b70f0ccfb9 (patch)
tree96b1625e2559e227e2f12802796450d64ab4ce45 /examples/poiseulle_particles_2d_gpu/.nix/derivation.nix
parentcf4132d9a02271847e774035c4a49ff9158ba289 (diff)
parentda25b3a1e7776a810d3bda5af3f363cf3e986cae (diff)
downloadlibs-lbm-5ea4875b96bfacd4c5f0125c9e7b64b70f0ccfb9.tar.gz
Merge branch 'dev'
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu/.nix/derivation.nix')
-rw-r--r--examples/poiseulle_particles_2d_gpu/.nix/derivation.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/.nix/derivation.nix b/examples/poiseulle_particles_2d_gpu/.nix/derivation.nix
new file mode 100644
index 0000000..d78ff47
--- /dev/null
+++ b/examples/poiseulle_particles_2d_gpu/.nix/derivation.nix
@@ -0,0 +1,45 @@
+{ lib
+, stdenv
+, scons
+, clang-tools
+, forstio
+, python3
+, pname
+, version
+, adaptive-cpp
+, kel
+, slip ? false
+, particle_coupling ? "fplbm"
+}:
+
+let
+ slip_txt = if slip then "slip" else "noslip";
+in stdenv.mkDerivation {
+ pname = "${pname}-examples-poiseulle_2d_gpu_${particle_coupling}_${slip_txt}";
+ inherit version;
+ src = ./..;
+
+ nativeBuildInputs = [
+ scons
+ clang-tools
+ python3
+ ];
+
+ buildInputs = [
+ forstio.core
+ forstio.async
+ forstio.codec
+ forstio.codec-unit
+ forstio.io
+ forstio.remote
+ forstio.remote-filesystem
+ forstio.codec-json
+ adaptive-cpp
+ kel.lbm.core
+ kel.lbm.sycl
+ ];
+
+ preferLocalBuild = true;
+
+ outputs = [ "out" "dev" ];
+}