diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-02 13:40:42 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-02 13:41:11 +0200 |
commit | d9ccf8d1ee154e6576cafa2aafb2d66d4f7421f7 (patch) | |
tree | cdf4907db12b738be5c7ac1a57bebc8a430b5033 /modules/tools/.nix | |
parent | 0050a4d59297604f4e692e4657bd34b1ec3a2474 (diff) |
tools,nix: Setting up build example env for cli modification
Diffstat (limited to 'modules/tools/.nix')
-rw-r--r-- | modules/tools/.nix/derivation.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/tools/.nix/derivation.nix b/modules/tools/.nix/derivation.nix index 81052f3..1c1431a 100644 --- a/modules/tools/.nix/derivation.nix +++ b/modules/tools/.nix/derivation.nix @@ -3,6 +3,7 @@ , scons , clang-tools , version +, build_examples ? false , forstio }: @@ -22,8 +23,8 @@ in stdenv.mkDerivation { buildInputs = [ forstio.core - forstio.async - forstio.io + forstio.async + forstio.io forstio.codec forstio.codec-json ]; @@ -33,6 +34,14 @@ in stdenv.mkDerivation { scons test ./bin/tests ''; + + buildPhase = '' + scons build_examples=${build_examples} + ''; + + installPhase = '' + scons prefix=$out build_examples=${build_examples} install + ''; outputs = ["out" "dev"]; } |