diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-11-05 09:44:04 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-11-05 09:44:04 +0100 |
| commit | c1d73cbe17650c834faee5a0098a9499b39a2835 (patch) | |
| tree | ac9c1180f5f8603dd887b7360597db8c53b6e99e /modules/io-ssh/.nix/derivation.nix | |
| parent | 5c1d7018ba867a73c160cc044b939e35a2c07243 (diff) | |
| download | forstio-forstio-c1d73cbe17650c834faee5a0098a9499b39a2835.tar.gz | |
Dangling changes from the weekend. Added io/ssh setup
Diffstat (limited to 'modules/io-ssh/.nix/derivation.nix')
| -rw-r--r-- | modules/io-ssh/.nix/derivation.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/io-ssh/.nix/derivation.nix b/modules/io-ssh/.nix/derivation.nix new file mode 100644 index 0000000..6131a98 --- /dev/null +++ b/modules/io-ssh/.nix/derivation.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, scons +, clang-tools +, version +, forstio +, gnutls +, build_examples ? "false" +}: + +let + +in stdenv.mkDerivation { + pname = "forstio-io-tls"; + inherit version; + src = ./..; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.io + gnutls + ]; + + buildPhase = '' + scons build_examples=${build_examples} + ''; + + installPhase = '' + scons prefix=$out build_examples=${build_examples} install + ''; + + outputs = ["out" "dev"]; +} |
