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 systems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = f: builtins.listToAttrs (map (system: { name = system; value = f system; }) systems); in { packages = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; in { hello = pkgs.hello; default = pkgs.hello; }); }; } </syntaxhighlight>"
Line 314: Line 314:
   };
   };


   <div lang="en" dir="ltr" class="mw-content-ltr">
   outputs = { self, nixpkgs }: let
outputs = { self, nixpkgs }: let
     systems = [ "x86_64-linux" "aarch64-linux" ];
     systems = [ "x86_64-linux" "aarch64-linux" ];
     forAllSystems = f: builtins.listToAttrs (map (system: {
     forAllSystems = f: builtins.listToAttrs (map (system: {
Line 331: Line 330:
}
}
</syntaxhighlight>
</syntaxhighlight>
</div>


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