From 37ee6cef992c1a80e790a294b75db8c116be8bbb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Jun 2004 09:51:23 +0000 Subject: * Adapted nix-pull to use the new substitute mechanism. --- corepkgs/Makefile.am | 2 +- corepkgs/nix-pull/Makefile.am | 11 +++++++++++ corepkgs/nix-pull/builder.sh.in | 34 ++++++++++++++++++++++++++++++++++ corepkgs/nix-pull/default.nix | 7 +++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 corepkgs/nix-pull/Makefile.am create mode 100644 corepkgs/nix-pull/builder.sh.in create mode 100644 corepkgs/nix-pull/default.nix (limited to 'corepkgs') diff --git a/corepkgs/Makefile.am b/corepkgs/Makefile.am index c9ea11cef..ca4cea2fc 100644 --- a/corepkgs/Makefile.am +++ b/corepkgs/Makefile.am @@ -1 +1 @@ -SUBDIRS = fetchurl nar buildenv channels +SUBDIRS = fetchurl nar buildenv channels nix-pull diff --git a/corepkgs/nix-pull/Makefile.am b/corepkgs/nix-pull/Makefile.am new file mode 100644 index 000000000..91adb4853 --- /dev/null +++ b/corepkgs/nix-pull/Makefile.am @@ -0,0 +1,11 @@ +all-local: builder.sh + +install-exec-local: + $(INSTALL) -d $(DESTDIR)$(datadir)/nix/corepkgs + $(INSTALL) -d $(DESTDIR)$(datadir)/nix/corepkgs/nix-pull + $(INSTALL_DATA) default.nix $(DESTDIR)$(datadir)/nix/corepkgs/nix-pull + $(INSTALL_PROGRAM) builder.sh $(DESTDIR)$(datadir)/nix/corepkgs/nix-pull + +include ../../substitute.mk + +EXTRA_DIST = default.nix builder.sh.in diff --git a/corepkgs/nix-pull/builder.sh.in b/corepkgs/nix-pull/builder.sh.in new file mode 100644 index 000000000..cc1a125d8 --- /dev/null +++ b/corepkgs/nix-pull/builder.sh.in @@ -0,0 +1,34 @@ +#! @shell@ -e + +export PATH=/bin:/usr/bin + +mkdir $out + +cat > $out/fetch <