about summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/Makefile.am2
-rw-r--r--corepkgs/buildenv/Makefile.am9
2 files changed, 10 insertions, 1 deletions
diff --git a/corepkgs/Makefile.am b/corepkgs/Makefile.am
index e5b892bfcb24..2fb23f1c043a 100644
--- a/corepkgs/Makefile.am
+++ b/corepkgs/Makefile.am
@@ -1 +1 @@
-SUBDIRS = fetchurl nar
+SUBDIRS = fetchurl nar buildenv
diff --git a/corepkgs/buildenv/Makefile.am b/corepkgs/buildenv/Makefile.am
new file mode 100644
index 000000000000..74c39199f689
--- /dev/null
+++ b/corepkgs/buildenv/Makefile.am
@@ -0,0 +1,9 @@
+install-exec-local:
+	$(INSTALL) -d $(datadir)/nix/corepkgs
+	$(INSTALL) -d $(datadir)/nix/corepkgs/buildenv
+	$(INSTALL_DATA) default.nix $(datadir)/nix/corepkgs/buildenv
+	$(INSTALL_PROGRAM) builder.pl $(datadir)/nix/corepkgs/buildenv
+
+include ../../substitute.mk
+
+EXTRA_DIST = default.nix builder.pl