summaryrefslogtreecommitdiff
path: root/modules/io-ssh/.nix/derivation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/io-ssh/.nix/derivation.nix')
-rw-r--r--modules/io-ssh/.nix/derivation.nix41
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"];
+}