tldr/pages.de/common/nix-shell.md
K.B.Dharun Krishna 5c26174aa9
pages/*: update links and more info link script (#11390)
* pages/*: update links and more info link script

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: reformat code

* ax-webapp: fix link

* curl: fix false positive

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-06 23:14:12 +05:30

1.0 KiB

nix-shell

Startet eine interaktive Shell, die auf einem Nix-Ausdruck basiert. Weitere Informationen: https://nixos.org/manual/nix/stable/command-ref/nix-shell.html.

  • 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}} {{argument1 argument2 ...}}"

  • 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}}

nix-shell -i {{interpreter}} --packages {{paket_name_1 paket_name_2 ...}}