mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Fix nix-shell command example in python docs
The nix-shell command here is incorrect AFAICT. `-i` is supposed to specify the interpreter and `-p` specifies the packages.
This commit is contained in:
parent
74260a4922
commit
c67a6482a3
@ -165,7 +165,7 @@ run the script in the `python3` shell.
|
||||
|
||||
```py
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i 'python3.withPackages(ps: [ps.numpy])'
|
||||
#! nix-shell -i python3 -p 'python3.withPackages(ps: [ps.numpy])'
|
||||
|
||||
import numpy
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user