aboutsummaryrefslogtreecommitdiff
path: root/scripts/meson.build
blob: c916c8efaac072f8bc47c10e6da99e8a7494bd05 (plain)
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
27
28
29
# configures `scripts/nix-profile.sh.in` (and copies the original to the build directory).
# this is only needed for tests, but running it unconditionally does not hurt enough to care.
configure_file(
  input : 'nix-profile.sh.in',
  output : 'nix-profile.sh',
  configuration : {
    'localstatedir': state_dir,
  }
)

# https://github.com/mesonbuild/meson/issues/860
configure_file(
  input : 'nix-profile.sh.in',
  output : 'nix-profile.sh.in',
  copy : true,
)

foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ]
  configure_file(
    input : 'nix-profile' + rc  + '.in',
    output : 'nix' + rc,
    install : true,
    install_dir : profile_dir,
    install_mode : 'rw-r--r--',
    configuration : {
      'localstatedir': state_dir,
    },
  )
endforeach