Flakes/zh: Difference between revisions
Created page with "inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };" |
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: | ||
}; | }; | ||
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 lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |