diff --git a/flake.lock b/flake.lock index 978bd031..fdd2ad0d 100644 --- a/flake.lock +++ b/flake.lock @@ -76,7 +76,8 @@ "flake-parts": "flake-parts", "mkdocs-numtide": "mkdocs-numtide", "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" + "rust-overlay": "rust-overlay", + "systems": "systems" } }, "rust-overlay": { @@ -99,6 +100,21 @@ "repo": "rust-overlay", "type": "github" } + }, + "systems": { + "locked": { + "lastModified": 1680980633, + "narHash": "sha256-mz27VfAExPMYuoWsb1cf++DIyUWWBEbAvXD0BJ+AT/E=", + "owner": "nix-systems", + "repo": "default", + "rev": "4e9a51a15ceb27e5141819142a7d2ee827943fc8", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index c094b8ad..18915a53 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,9 @@ description = "treefmt"; # To update all inputs: # $ nix flake update --recreate-lock-file + + inputs.systems.url = "github:nix-systems/default"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.flake-parts.url = "github:hercules-ci/flake-parts"; inputs.flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; @@ -12,9 +15,9 @@ inputs.mkdocs-numtide.url = "github:numtide/mkdocs-numtide"; inputs.mkdocs-numtide.inputs.nixpkgs.follows = "nixpkgs"; - outputs = { self, nixpkgs, flake-parts, mkdocs-numtide, ... }@inputs: + outputs = { self, nixpkgs, flake-parts, mkdocs-numtide, systems, ... }@inputs: flake-parts.lib.mkFlake { inherit self; } { - systems = nixpkgs.lib.systems.flakeExposed; + systems = import systems; perSystem = { system, pkgs, ... }: let packages = import ./. {