about summary refs log tree commit diff
path: root/third_party/nix/corepkgs
diff options
context:
space:
mode:
authorp01arst0rm <polar@ever3st.com>2019-10-21T16·57+0100
committerVincent Ambo <tazjin@google.com>2020-05-17T14·55+0100
commit055139ac6aaecc7193972b65d2bcca022969c61d (patch)
tree3fb9b6c3aee1a06a40ee3edda1c41ff7df95a9ab /third_party/nix/corepkgs
parentc455f7a987fff8fef459d340865368b1da28cecd (diff)
feat(3p/nix): added meson support r/726
(cherry picked from commit 086a81b7a5bbe1fc022efb5935ff68f6ad71ddaf)
Diffstat (limited to 'third_party/nix/corepkgs')
-rw-r--r--third_party/nix/corepkgs/meson.build58
1 files changed, 58 insertions, 0 deletions
diff --git a/third_party/nix/corepkgs/meson.build b/third_party/nix/corepkgs/meson.build
new file mode 100644
index 000000000000..57add8d65f25
--- /dev/null
+++ b/third_party/nix/corepkgs/meson.build
@@ -0,0 +1,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'))