diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-27 14:21:30 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-27 14:21:30 +0200 |
commit | e12b29949a7ba3b5fd61693d2eff6c7f58798965 (patch) | |
tree | 69ad1b3539898dacab6f76ca6b51211f0e7902a0 /modules/thread/.nix/derivation.nix | |
parent | 7f230b02b106029351480f2f201b95235b516e5d (diff) |
Adding thread module base
Diffstat (limited to 'modules/thread/.nix/derivation.nix')
-rw-r--r-- | modules/thread/.nix/derivation.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/thread/.nix/derivation.nix b/modules/thread/.nix/derivation.nix new file mode 100644 index 0000000..9175d6a --- /dev/null +++ b/modules/thread/.nix/derivation.nix @@ -0,0 +1,42 @@ +{ lib +, stdenv +, scons +, clang-tools +, version +, forstio +, build_examples ? "false" +}: + +stdenv.mkDerivation { + pname = "forstio-thread"; + inherit version; + src = ./..; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.io + forstio.codec + forstio.io_codec + ]; + + outputs = [ + "out" + "dev" + ]; + + buildPhase = '' + scons build_examples=${build_examples} + ''; + + installPhase = '' + scons prefix=$out build_examples=${build_examples} install + ''; +} |