Skip to content

Instantly share code, notes, and snippets.

@steinybot
Created April 19, 2022 00:03
Show Gist options
  • Save steinybot/f193fd39bea64a198d967ad8e385f6ee to your computer and use it in GitHub Desktop.
Save steinybot/f193fd39bea64a198d967ad8e385f6ee to your computer and use it in GitHub Desktop.
Nix Tips

Nix Tips

Build a package from a different system (e.g. run Intel package under Rosetta 2):

nix-build -A pkgsCross.x86_64-darwin.hello

Run nix-shell with local packages:

nix-shell -I nixpkgs=/Users/jason/src/nixpkgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment