about summary refs log tree commit diff
path: root/corepkgs/nar/nar.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'corepkgs/nar/nar.sh.in')
-rw-r--r--corepkgs/nar/nar.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in
new file mode 100644
index 000000000000..bffbbaf5e1df
--- /dev/null
+++ b/corepkgs/nar/nar.sh.in
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+echo "packing $path into $out..."
+@bindir@/nix --dump --file "$path" | bzip2 > $out || exit 1
+