Skip to content

Instantly share code, notes, and snippets.

@steinybot
Created April 19, 2022 00:03
Show Gist options
  • Select an option

  • Save steinybot/f193fd39bea64a198d967ad8e385f6ee to your computer and use it in GitHub Desktop.

Select an option

Save steinybot/f193fd39bea64a198d967ad8e385f6ee to your computer and use it in GitHub Desktop.

Revisions

  1. steinybot created this gist Apr 19, 2022.
    11 changes: 11 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # 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
    ```