about summary refs log tree commit diff
path: root/corepkgs/nar/unnar.sh.in
blob: b0b6f9d468f2cc8530924bdecd04fc2c6174bedb (plain) (blame)
1
2
3
4
5
6
#! /bin/sh

export PATH=/bin:/usr/bin

echo "unpacking $narFile to $out..."
bunzip2 < $narFile | @bindir@/nix-store --restore "$out" || exit 1