summaryrefslogtreecommitdiff
path: root/modules/remote-filesystem/.nix
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-18 19:07:53 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-18 19:07:53 +0200
commit14dbb72f6c6043b442c5a74299fbe55b9f199ca6 (patch)
tree09f1dbf37ab555c4be3a734af43ac860da027194 /modules/remote-filesystem/.nix
parentf1223709e193c4513047293a1a42b55b9e8874b8 (diff)
wip
Diffstat (limited to 'modules/remote-filesystem/.nix')
-rw-r--r--modules/remote-filesystem/.nix/derivation.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/remote-filesystem/.nix/derivation.nix b/modules/remote-filesystem/.nix/derivation.nix
new file mode 100644
index 0000000..f1d4421
--- /dev/null
+++ b/modules/remote-filesystem/.nix/derivation.nix
@@ -0,0 +1,43 @@
+{ lib
+, stdenv
+, scons
+, clang-tools
+, version
+, forstio
+, build_examples ? "false"
+}:
+
+stdenv.mkDerivation {
+ pname = "forstio-remote-filesystem";
+ inherit version;
+ src = ./..;
+
+ enableParallelBuilding = true;
+
+ nativeBuildInputs = [
+ scons
+ clang-tools
+ ];
+
+ buildInputs = [
+ forstio.core
+ forstio.async
+ forstio.io
+ forstio.codec
+ forstio.remote
+ forstio.io_codec
+ ];
+
+ outputs = [
+ "out"
+ "dev"
+ ];
+
+ buildPhase = ''
+ scons build_examples=${build_examples}
+ '';
+
+ installPhase = ''
+ scons prefix=$out build_examples=${build_examples} install
+ '';
+}