Created
December 9, 2016 03:08
-
-
Save grahamc/7dfd275d9fc2862b620f458253b7bb90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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