Skip to content

Instantly share code, notes, and snippets.

@nixinator
Last active December 3, 2021 02:16
Show Gist options
  • Save nixinator/61b9e76d2ced6bda9c2d6acc66e3a24e to your computer and use it in GitHub Desktop.
Save nixinator/61b9e76d2ced6bda9c2d6acc66e3a24e to your computer and use it in GitHub Desktop.
nix-shell with a local checkout of nixpkgs
nix-shell -p hello /path/to/a/local/checkout/of/nixpkgs
(i don't think this actually works).
however
nix-shell -p hello -I nixpkgs=/path/to/a/local/checkout/of/nixpkgs
(definity works).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment