Skip to content

Commit 428b3a5

Browse files
committed
Add systems input to leverage extensible flake systems pattern
Add the systems input to transitively leverage the "externally extensible flake systems" [1] pattern. [1]: https://github.com/nix-systems/nix-systems
1 parent 125ae9e commit 428b3a5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

flake.lock

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88

99
inputs = {
1010
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
11-
utils.url = "github:numtide/flake-utils";
11+
systems.url = "github:nix-systems/default";
12+
13+
utils = {
14+
url = "github:numtide/flake-utils";
15+
inputs.systems.follows = "systems";
16+
};
17+
1218
flake-compat = {
1319
url = "github:edolstra/flake-compat";
1420
flake = false;

nix/tests/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ let
5050
flakeInputs = ''
5151
deploy-rs.url = "${../..}";
5252
deploy-rs.inputs.utils.follows = "utils";
53+
deploy-rs.inputs.systems.follows = "systems";
5354
deploy-rs.inputs.flake-compat.follows = "flake-compat";
5455
5556
nixpkgs.url = "${inputs.nixpkgs}";
5657
utils.url = "${inputs.utils}";
57-
utils.inputs.systems.follows = "systems";
5858
systems.url = "${inputs.utils.inputs.systems}";
5959
flake-compat.url = "${inputs.flake-compat}";
6060
flake-compat.flake = false;

0 commit comments

Comments
 (0)