diff options
author | p01arst0rm <polar@ever3st.com> | 2019-10-21T16·57+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-17T14·55+0100 |
commit | 055139ac6aaecc7193972b65d2bcca022969c61d (patch) | |
tree | 3fb9b6c3aee1a06a40ee3edda1c41ff7df95a9ab /third_party/nix/misc | |
parent | c455f7a987fff8fef459d340865368b1da28cecd (diff) |
feat(3p/nix): added meson support r/726
(cherry picked from commit 086a81b7a5bbe1fc022efb5935ff68f6ad71ddaf)
Diffstat (limited to 'third_party/nix/misc')
-rw-r--r-- | third_party/nix/misc/launchd/meson.build | 19 | ||||
-rw-r--r-- | third_party/nix/misc/meson.build | 13 | ||||
-rw-r--r-- | third_party/nix/misc/systemd/meson.build | 26 | ||||
-rw-r--r-- | third_party/nix/misc/systemv/meson.build | 8 | ||||
-rw-r--r-- | third_party/nix/misc/upstart/meson.build | 26 |
5 files changed, 92 insertions, 0 deletions
diff --git a/third_party/nix/misc/launchd/meson.build b/third_party/nix/misc/launchd/meson.build new file mode 100644 index 000000000000..c7f362cdf239 --- /dev/null +++ b/third_party/nix/misc/launchd/meson.build @@ -0,0 +1,19 @@ +# nix launchd build file +#============================================================================ + +if (sys_name.contains('darwin')) + + launchd_data = [] + + org_nixos_nix_dameon_plist = configuration_data() + org_nixos_nix_dameon_plist.set('bindir', bindir) + + launchd_data += configure_file( + input : 'org.nixos.nix-daemon.plist.in', + output : 'org.nixos.nix-daemon.plist', + configuration : org_nixos_nix_dameon_plist) + + install_data( + corepkgs_data, + install_dir : join_paths(prefix, 'Library/LaunchDaemons')) +endif diff --git a/third_party/nix/misc/meson.build b/third_party/nix/misc/meson.build new file mode 100644 index 000000000000..0d53faf278d5 --- /dev/null +++ b/third_party/nix/misc/meson.build @@ -0,0 +1,13 @@ +# nix src build file +#============================================================================ + +misc_dirs = [ + 'launchd', + 'systemd', + 'systemv', + 'upstart' +] + +foreach dir : misc_dirs + subdir(dir) +endforeach diff --git a/third_party/nix/misc/systemd/meson.build b/third_party/nix/misc/systemd/meson.build new file mode 100644 index 000000000000..588f0b3d9d6b --- /dev/null +++ b/third_party/nix/misc/systemd/meson.build @@ -0,0 +1,26 @@ +# nix systemd build file +#============================================================================ + +if (sys_name.contains('linux')) + + systemd_data = [] + + systemd_nix_daemon = configuration_data() + systemd_nix_daemon.set('bindir', bindir) + systemd_nix_daemon.set('storedir', nixstoredir) + systemd_nix_daemon.set('localstatedir', localstatedir) + + systemd_data += configure_file( + input : 'nix-daemon.socket.in', + output : 'nix-daemon.socket', + configuration : systemd_nix_daemon) + + systemd_data += configure_file( + input : 'nix-daemon.service.in', + output : 'nix-daemon.service', + configuration : systemd_nix_daemon) + + install_data( + systemd_data, + install_dir : join_paths(prefix, 'lib/systemd/system')) +endif diff --git a/third_party/nix/misc/systemv/meson.build b/third_party/nix/misc/systemv/meson.build new file mode 100644 index 000000000000..275714bf7759 --- /dev/null +++ b/third_party/nix/misc/systemv/meson.build @@ -0,0 +1,8 @@ +# nix systemd build file +#============================================================================ + +systemv_data = [] + +# install_data( +# systemv_data, +# install_dir : join_paths(prefix, 'lib/systemd/system')) 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 |