From ff066b06a82f0ab330dab3ceb2d4b7132727f861 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 10 Jul 2024 14:15:40 +0200 Subject: Initial commit --- tools/.nix/derivation.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tools/.nix/derivation.nix (limited to 'tools/.nix/derivation.nix') diff --git a/tools/.nix/derivation.nix b/tools/.nix/derivation.nix new file mode 100644 index 0000000..561e9d6 --- /dev/null +++ b/tools/.nix/derivation.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, scons +, clang-tools +, version +, forstio +}: + +stdenv.mkDerivation { + pname = "forstio-examples-tools"; + inherit version; + src = ./..; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + scons + clang-tools + forstio.tools + ]; + + buildInputs = [ + forstio.core + forstio.codec + ]; + + buildPhase = '' + scons all + ls + build/forstio_examples_c_lang_bindings + ''; + + installPhase = '' + mkdir -p $out + cp forstio_example* $out/ + ''; + + outputs = ["out"]; +} -- cgit v1.2.3