Flakes/zh: Difference between revisions

Weijia (talk | contribs)
Created page with "inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";"
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>"
Tags: Mobile edit Mobile web edit
Line 118: Line 118:
   inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
   inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";


   <div lang="en" dir="ltr" class="mw-content-ltr">
   outputs = { self, nixpkgs}:
outputs = { self, nixpkgs}:
     let
     let
       system = "x86_64-linux";
       system = "x86_64-linux";
Line 129: Line 128:
         ];
         ];
         shellHook = ''
         shellHook = ''
           echo "Welcome to the devShell!"
           echo "欢迎进入 devShell!"
         '';
         '';
       };
       };
Line 135: Line 134:
}
}
</syntaxhighlight>
</syntaxhighlight>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">