diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-17 22:26:14 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-17 22:26:14 +0200 |
| commit | ade88e2eb8a4df07489ed8c3b51ca336120b0a58 (patch) | |
| tree | eecd40b0e324657c1eeb0e3cd7f53f10aa6b0db7 /examples/feature_development/.nix/derivation.nix | |
| parent | 118b75b951bcd1d52ca4367716e37585769eb856 (diff) | |
| parent | 5ba7e8470f29f96ea0a12a78b3d97091fe69a581 (diff) | |
| download | libs-lbm-ade88e2eb8a4df07489ed8c3b51ca336120b0a58.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'examples/feature_development/.nix/derivation.nix')
| -rw-r--r-- | examples/feature_development/.nix/derivation.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/feature_development/.nix/derivation.nix b/examples/feature_development/.nix/derivation.nix new file mode 100644 index 0000000..d78ff47 --- /dev/null +++ b/examples/feature_development/.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" ]; +} |
