#! /bin/sh export PATH=/bin:/usr/bin echo "unpacking $narFile to $out..." bunzip2 < $narFile | @bindir@/nix-store --restore "$out" || exit 1