1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 05:02:10 +02:00
tldr/pages.de/common/nix-shell.md
pixel 348ecfbefe
nix, nix-build, nix-env, nix-collect-garbage, nix-shell: fix German translation (#9703)
* nix-build: fix german translation

* nix-collect-garbage: fix german translation

* nix-env: fix german translation

* nix-shell: fix german translation

* nix: fix german translation
2023-01-01 16:24:44 +10:00

28 lines
1 KiB
Markdown

# nix-shell
> Startet eine interaktive Shell, die auf einem Nix-Ausdruck basiert.
> Weitere Informationen: <https://nixos.org/manual/nix/stable/#sec-nix-shell>.
- Starte mit Nix-Ausdruck in `shell.nix` oder `default.nix` im aktuellen Verzeichnis:
`nix-shell`
- Führe Shell-Befehl in nicht-interaktiver Shell aus und beende:
`nix-shell --run "{{befehl}} {{arg1 arg2 ...}}"`
- Starte mit Ausdruck in `default.nix` im aktuellen Verzeichnis:
`nix-shell {{default.nix}}`
- Starte mit aus nixpkgs geladenen Paketen:
`nix-shell --packages {{paket_name_1 paket_name_2 ...}}`
- Starte mit Paketen, die aus einer bestimmten Nixpkgs-Revision geladen wurden:
`nix-shell --packages {{paket_name_1 paket_name_2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
- Führe den Rest der Datei mit einem bestimmten Interpreter aus, zur Verwendung in `#!-scripts` (siehe <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>):
`nix-shell -i {{interpreter}} --packages {{paket_name_1 paket_name_2 ...}}`