mirror of
https://github.com/NixOS/nix.git
synced 2024-10-30 05:40:52 +00:00
* Generate nar.sh, fetchurl.sh.
This commit is contained in:
parent
b3fc38bf6a
commit
ab350eafd2
@ -12,5 +12,7 @@ AC_PROG_CXX
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile corepkgs/Makefile])
|
||||
AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile
|
||||
corepkgs/Makefile corepkgs/fetchurl/Makefile
|
||||
corepkgs/nar/Makefile])
|
||||
AC_OUTPUT
|
||||
|
@ -1,10 +1 @@
|
||||
install-data-local:
|
||||
$(INSTALL) -d $(datadir)/fix
|
||||
$(INSTALL) -d $(datadir)/fix/fetchurl
|
||||
$(INSTALL_DATA) fetchurl/fetchurl.fix $(datadir)/fix/fetchurl
|
||||
$(INSTALL_DATA) fetchurl/fetchurl.sh $(datadir)/fix/fetchurl
|
||||
$(INSTALL) -d $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar/nar.fix $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar/nar.sh $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar/unnar.fix $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar/unnar.sh $(datadir)/fix/nar
|
||||
SUBDIRS = fetchurl nar
|
||||
|
8
corepkgs/fetchurl/Makefile.am
Normal file
8
corepkgs/fetchurl/Makefile.am
Normal file
@ -0,0 +1,8 @@
|
||||
all-local: fetchurl.sh
|
||||
|
||||
install-exec-local:
|
||||
$(INSTALL) -d $(datadir)/fix/fetchurl
|
||||
$(INSTALL_DATA) fetchurl.fix $(datadir)/fix/fetchurl
|
||||
$(INSTALL_DATA) fetchurl.sh $(datadir)/fix/fetchurl
|
||||
|
||||
include ../../substitute.mk
|
10
corepkgs/nar/Makefile.am
Normal file
10
corepkgs/nar/Makefile.am
Normal file
@ -0,0 +1,10 @@
|
||||
all-local: nar.sh unnar.sh
|
||||
|
||||
install-exec-local:
|
||||
$(INSTALL) -d $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar.fix $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) nar.sh $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) unnar.fix $(datadir)/fix/nar
|
||||
$(INSTALL_DATA) unnar.sh $(datadir)/fix/nar
|
||||
|
||||
include ../../substitute.mk
|
@ -1,5 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "packing $path into $out..."
|
||||
/nix/bin/nix --dump --file "$path" | bzip2 > $out || exit 1
|
||||
|
5
corepkgs/nar/nar.sh.in
Normal file
5
corepkgs/nar/nar.sh.in
Normal file
@ -0,0 +1,5 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "packing $path into $out..."
|
||||
@bindir@/nix --dump --file "$path" | bzip2 > $out || exit 1
|
||||
|
@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "unpacking $nar to $out..."
|
||||
bunzip2 < $nar | /nix/bin/nix --restore "$out" || exit 1
|
4
corepkgs/nar/unnar.sh.in
Normal file
4
corepkgs/nar/unnar.sh.in
Normal file
@ -0,0 +1,4 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "unpacking $nar to $out..."
|
||||
bunzip2 < $nar | @bindir@/nix --restore "$out" || exit 1
|
@ -10,10 +10,4 @@ install-exec-local:
|
||||
# !!! don't overwrite local modifications
|
||||
$(INSTALL_DATA) prebuilts.conf $(sysconfdir)/nix/prebuilts.conf
|
||||
|
||||
%: %.in Makefile
|
||||
sed \
|
||||
-e s^@prefix\@^$(prefix)^g \
|
||||
-e s^@sysconfdir\@^$(sysconfdir)^g \
|
||||
-e s^@localstatedir\@^$(localstatedir)^g \
|
||||
< $< > $@ || rm $@
|
||||
chmod +x $@
|
||||
include ../substitute.mk
|
||||
|
Loading…
Reference in New Issue
Block a user