about summary refs log tree commit diff
path: root/third_party/nix/corepkgs/meson.build
blob: 57add8d65f2549ff66f78a829f6701d551e2f107 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Nix corepkgs build file
#============================================================================




# src files
#============================================================================


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'))





# targets
#============================================================================


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)





# build
#============================================================================


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'))