diff --git a/README.md b/README.md index 46385f8..d85507b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ following contents at the root of your cargo workspace: crane.url = "github:ipetkov/crane"; crane.inputs.nixpkgs.follows = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - flake-utils.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, crane, flake-utils, ... }: @@ -119,7 +118,6 @@ Here's how we can set up our flake to achieve our goals: crane.url = "github:ipetkov/crane"; crane.inputs.nixpkgs.follows = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - flake-utils.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, crane, flake-utils, ... }: @@ -204,7 +202,6 @@ build. crane.url = "github:ipetkov/crane"; crane.inputs.nixpkgs.follows = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - flake-utils.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, crane, flake-utils, ... }: diff --git a/examples/alt-registry/flake.nix b/examples/alt-registry/flake.nix index 940d405..7231f5c 100644 --- a/examples/alt-registry/flake.nix +++ b/examples/alt-registry/flake.nix @@ -11,7 +11,6 @@ flake-utils = { url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; }; }; diff --git a/examples/cross-musl/flake.nix b/examples/cross-musl/flake.nix index 8d01bd7..c840880 100644 --- a/examples/cross-musl/flake.nix +++ b/examples/cross-musl/flake.nix @@ -9,14 +9,14 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + flake-utils.url = "github:numtide/flake-utils"; rust-overlay = { url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; }; diff --git a/examples/cross-rust-overlay/flake.nix b/examples/cross-rust-overlay/flake.nix index b0d1933..384879c 100644 --- a/examples/cross-rust-overlay/flake.nix +++ b/examples/cross-rust-overlay/flake.nix @@ -9,14 +9,14 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + flake-utils.url = "github:numtide/flake-utils"; rust-overlay = { url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; }; diff --git a/examples/custom-toolchain/flake.nix b/examples/custom-toolchain/flake.nix index deae81a..135102f 100644 --- a/examples/custom-toolchain/flake.nix +++ b/examples/custom-toolchain/flake.nix @@ -9,12 +9,15 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + flake-utils.url = "github:numtide/flake-utils"; - rust-overlay.url = "github:oxalica/rust-overlay"; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; + }; }; outputs = { self, nixpkgs, crane, flake-utils, rust-overlay, ... }: diff --git a/examples/quick-start-simple/flake.nix b/examples/quick-start-simple/flake.nix index 3947b82..f9fd655 100644 --- a/examples/quick-start-simple/flake.nix +++ b/examples/quick-start-simple/flake.nix @@ -9,10 +9,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, crane, flake-utils, ... }: diff --git a/examples/quick-start/flake.nix b/examples/quick-start/flake.nix index 91b2c89..3dfdcb2 100644 --- a/examples/quick-start/flake.nix +++ b/examples/quick-start/flake.nix @@ -9,10 +9,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, crane, flake-utils, ... }: diff --git a/flake.nix b/flake.nix index 538079b..fbf4bd3 100644 --- a/flake.nix +++ b/flake.nix @@ -7,10 +7,7 @@ flake = false; }; nix-std.url = "github:chessai/nix-std"; - utils = { - url = "github:numtide/flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + utils.url = "github:numtide/flake-utils"; }; outputs = inputs@{ self, nixpkgs, nix-std, utils, ... }: