summaryrefslogtreecommitdiff
path: root/examples/heterogeneous_computing/.nix
diff options
context:
space:
mode:
Diffstat (limited to 'examples/heterogeneous_computing/.nix')
-rw-r--r--examples/heterogeneous_computing/.nix/derivation.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/heterogeneous_computing/.nix/derivation.nix b/examples/heterogeneous_computing/.nix/derivation.nix
new file mode 100644
index 0000000..48dfc7a
--- /dev/null
+++ b/examples/heterogeneous_computing/.nix/derivation.nix
@@ -0,0 +1,39 @@
+{ lib
+, stdenv
+, scons
+, clang-tools
+, forstio
+, pname
+, version
+, kel-lbm
+}:
+
+stdenv.mkDerivation {
+ pname = pname + "-examples-" + "heterogeneous_computing";
+ inherit version;
+ src = ./..;
+
+ nativeBuildInputs = [
+ scons
+ clang-tools
+ ];
+
+ buildInputs = [
+ forstio.core
+ forstio.async
+ forstio.io
+ forstio.io_codec
+ forstio.codec
+ forstio.codec-unit
+ forstio.codec-json
+ forstio.remote
+ forstio.remote-filesystem
+ forstio.remote-io
+ forstio.remote-sycl
+ kel-lbm.core
+ ];
+
+ preferLocalBuild = true;
+
+ outputs = [ "out" "dev" ];
+}