diff options
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/Makefile.am | 8 | ||||
-rw-r--r-- | corepkgs/nar/nar.fix | 8 | ||||
-rw-r--r-- | corepkgs/nar/nar.sh | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/corepkgs/Makefile.am b/corepkgs/Makefile.am new file mode 100644 index 000000000000..9ce9c8c790eb --- /dev/null +++ b/corepkgs/Makefile.am @@ -0,0 +1,8 @@ +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 diff --git a/corepkgs/nar/nar.fix b/corepkgs/nar/nar.fix new file mode 100644 index 000000000000..3db6a48a0838 --- /dev/null +++ b/corepkgs/nar/nar.fix @@ -0,0 +1,8 @@ +Function(["path", "name"], + Package( + [ ("name", Var("name")) + , ("build", Relative("nar/nar.sh")) + , ("path", Var("path")) + ] + ) +) \ No newline at end of file diff --git a/corepkgs/nar/nar.sh b/corepkgs/nar/nar.sh new file mode 100644 index 000000000000..6ffcf63224a8 --- /dev/null +++ b/corepkgs/nar/nar.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +/tmp/nix/bin/nix --dump --file "$path" > $out || exit 1 |