Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created December 9, 2016 03:08
Show Gist options
  • Save grahamc/7dfd275d9fc2862b620f458253b7bb90 to your computer and use it in GitHub Desktop.
Save grahamc/7dfd275d9fc2862b620f458253b7bb90 to your computer and use it in GitHub Desktop.
cat /usr/bin/nix-store
#!/bin/sh
export PATH="/nix/var/nix/profiles/system/sw/bin${PATH:+:}$PATH"
if chroot /mnt "/nix/var/nix/profiles/system/sw/bin/true" > /dev/null 2>&1; then
exec chroot /mnt "/nix/var/nix/profiles/system/sw/bin/nix-store" $@
else
exec chroot /mnt "/nix/store/1j4x36ig5lais4r7bj4f0v3sm4gbw146-nix-1.12pre4523_3b81b26/bin/nix-store" $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment