flake-parts
Repo
hercules-ci/flake-parts: ❄️ Simplify Nix Flakes with the module system
Docs
Introduction - flake-parts
flake-utils ではなくて flake-parts を使うおう
Why you don't need flake-utils
perSystem
Module Arguments - flake-parts
overlay を適用するには
Overlays - flake-parts
nixpkgs 以外を使うには?
code:shell
input = {
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
}
output = {
flake-parts {
perSystem = {
inputs'.nixpkgs-unstable.legacyPackages.openapi-generator-cli
}
}
flake-parts.lib.mkFlake
定義
https://github.com/hercules-ci/flake-parts/blob/af66ad14b28a127c5c0f3bbb298218fc63528a18/lib.nix#L138
flake-parts を使って色々よしなにした結果として、最終的には flake output として出力する必要がある。それをやってくれるのが mkFlake なのだと思う。これはおまじない。
モジュールをまとめて一つの flake にしてくれるのかな?
これに渡せるオプションは何?
よく分からない。ここに書いてあるのだけ?
Getting Started - flake-parts