wip
This commit is contained in:
23
dist/nix-cheatsheet.md
vendored
Normal file
23
dist/nix-cheatsheet.md
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Nix package manager cheatsheet
|
||||
|
||||
## Search for packages
|
||||
|
||||
```sh
|
||||
nix search nixpkgs python
|
||||
```
|
||||
|
||||
## Add packages to current shell
|
||||
|
||||
```sh
|
||||
# single package
|
||||
nix shell nixpkgs#python3
|
||||
|
||||
# multiple packages
|
||||
nix shell nixpkgs#python3 nixpkgs#nodejs
|
||||
```
|
||||
|
||||
## Run a command directly
|
||||
|
||||
```sh
|
||||
nix run nixpkgs#python3 -- --version
|
||||
```
|
||||
Reference in New Issue
Block a user