Intro [jsr-0002]
Intro [jsr-0002]
使用 flake-parts
配置
开发 shell 的 flake.nix,主要内容在 ./nix
目录中。
{ description = "Forest de J.K."; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; forester = { url = "sourcehut:~jonsterling/ocaml-forester"; inputs.nixpkgs.follows = "nixpkgs"; }; flake-parts.url = "github:hercules-ci/flake-parts"; devshell.url = "github:numtide/devshell"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; imports = [ inputs.devshell.flakeModule ./nix ]; }; }