about summary refs log tree commit diff
path: root/third_party/nix/misc/upstart/meson.build
blob: 24731addd4ee26b67c1178a9f539eb8720744ad7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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