Development environment with nix-shell: Difference between revisions
imported>Bionicles m fix extremely minor typo |
imported>Ncfavier m fix typo 'pendantic' |
||
| Line 42: | Line 42: | ||
=== Small cross env note === | === Small cross env note === | ||
The comments in the code snippets on <code>nativeBuildInputs</code> and <code>buildInputs</code> above might seem | The comments in the code snippets on <code>nativeBuildInputs</code> and <code>buildInputs</code> above might seem pedantic --- who cares about build-time vs run-time when we're just making a dev environment, not a real package! However, the distinction becomes of practical importance if one wants a cross compilation development environment. In that case one would begin file with something like: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ pkgs ? import <nixpkgs> { crossSystem.config = "exotic_arch-unknown-exotic_os"; } }: | { pkgs ? import <nixpkgs> { crossSystem.config = "exotic_arch-unknown-exotic_os"; } }: | ||