Skip to content

Commit a3689f9

Browse files
committed
Update README examples
Raw `devShell` is deprecated in favor of `devShells.default`. Also change flake URLs to nixpkgs to correct cases.
1 parent 0d86c63 commit a3689f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Here's an example of using it in nixos configuration.
6161
description = "My configuration";
6262
6363
inputs = {
64-
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
64+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6565
rust-overlay.url = "github:oxalica/rust-overlay";
6666
};
6767
@@ -91,7 +91,7 @@ Running `nix develop` will create a shell with the default nightly Rust toolchai
9191
description = "A devShell example";
9292
9393
inputs = {
94-
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
94+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
9595
rust-overlay.url = "github:oxalica/rust-overlay";
9696
flake-utils.url = "github:numtide/flake-utils";
9797
};
@@ -106,7 +106,7 @@ Running `nix develop` will create a shell with the default nightly Rust toolchai
106106
in
107107
with pkgs;
108108
{
109-
devShell = mkShell {
109+
devShells.default = mkShell {
110110
buildInputs = [
111111
openssl
112112
pkgconfig

0 commit comments

Comments
 (0)