Outils pour utilisateurs

Outils du site


tuto:nix

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tuto:nix [2022/06/21 15:27] – [nix] roottuto:nix [2022/06/21 20:15] (Version actuelle) – [nix-shell] root
Ligne 140: Ligne 140:
 ==== nix-shell ==== ==== nix-shell ====
   * https://www.sam.today/blog/environments-with-nix-shell-learning-nix-pt-1/   * https://www.sam.today/blog/environments-with-nix-shell-learning-nix-pt-1/
 +
 +<code haskell shell.nix>
 +{ pkgs ? import <nixpkgs> {} }:
 +
 +with pkgs;
 +
 +mkShell {
 +  buildInputs = [
 +    elixir_1_10
 +    nodejs-12_x
 +  ];
 +}
 +</code>
  
 <xtermrtf> <xtermrtf>
 +$ nix-shell
 $ nix-shell shell.nix $ nix-shell shell.nix
 </xtermrtf> </xtermrtf>
tuto/nix.txt · Dernière modification : 2022/06/21 20:15 de root