about summary refs log tree commit diff
path: root/third_party/nix/corepkgs/meson.build
blob: 383909b0f7fead47d6bd2e8f465f26a8cbd45eb2 (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
27
28
29
30
31
32
corepkgs_data = files(
    join_paths(meson.source_root(), 'corepkgs/buildenv.nix'),
    join_paths(meson.source_root(), 'corepkgs/derivation.nix'),
    join_paths(meson.source_root(), 'corepkgs/fetchurl.nix'),
    join_paths(meson.source_root(), 'corepkgs/imported-drv-to-derivation.nix'),
    join_paths(meson.source_root(), 'corepkgs/unpack-channel.nix'))

config_nix = configuration_data()
config_nix.set('bash', bash.path())
config_nix.set('coreutils', coreutils)
config_nix.set('bzip2', bzip2.path())
config_nix.set('gzip', gzip.path())
config_nix.set('xz', xz.path())
config_nix.set('tar', tar.path())
config_nix.set('tarFlags', '')
config_nix.set('tr', tr.path())
config_nix.set('bindir', bindir)
config_nix.set('prefix', prefix)
config_nix.set('libexecdir', libexecdir)
config_nix.set('localstatedir', localstatedir)
config_nix.set('sysconfdir', sysconfdir)
config_nix.set('storedir', nixstoredir)

corepkgs_data += configure_file(
    input : 'config.nix.in',
    output : 'config.nix',
    configuration : config_nix)

install_data(
    corepkgs_data,
    install_mode : 'rwxr-xr-x',
    install_dir : join_paths(datadir, 'nix/corepkgs'))