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

export PATH=/bin:/usr/bin

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