about summary refs log tree commit diff
path: root/third_party/nix/misc/upstart
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/misc/upstart')
-rw-r--r--third_party/nix/misc/upstart/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/nix/misc/upstart/meson.build b/third_party/nix/misc/upstart/meson.build
new file mode 100644
index 000000000000..24731addd4ee
--- /dev/null
+++ b/third_party/nix/misc/upstart/meson.build
@@ -0,0 +1,26 @@
+# ifeq ($(OS), Linux)
+
+#   $(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))
+
+# endif
+
+
+# nix systemd build file
+#============================================================================
+
+if (sys_name.contains('linux'))
+
+    upstart_data = []
+
+    upstart_nix_daemon = configuration_data()
+    upstart_nix_daemon.set('bindir', bindir)
+
+    upstart_data += configure_file(
+        input : 'nix-daemon.conf.in',
+        output : 'nix-daemon.conf',
+        configuration : upstart_nix_daemon)
+
+    install_data(
+        upstart_data,
+        install_dir : join_paths(sysconfdir, 'init'))
+endif