Jump to content

Translations:Flakes/200/zh

From Official NixOS Wiki
Revision as of 19:26, 28 August 2025 by Weijia (talk | contribs) (Created page with "outputs = { self, nixpkgs}: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; in { devShells.x86_64-linux.default = pkgs.mkShell { buildInputs = with pkgs; [ hello ]; shellHook = '' echo "欢迎进入 devShell!" ''; }; }; } </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

outputs = { self, nixpkgs}:

   let
     system = "x86_64-linux";
     pkgs = import nixpkgs { inherit system; };
   in {
     devShells.x86_64-linux.default = pkgs.mkShell {
       buildInputs = with pkgs; [
         hello
       ];
       shellHook = 
         echo "欢迎进入 devShell!"
       ;
     };
   };

} </syntaxhighlight>