Prefer packages over nativeBuildInputs

This commit is contained in:
Hannes Ljungberg 2023-01-12 20:10:51 +01:00
parent 32bf26a499
commit 57ba870eab
No known key found for this signature in database
GPG key ID: 89F9502DAC4CA6C1
2 changed files with 2 additions and 3 deletions

View file

@ -180,7 +180,7 @@ Either add `shell.nix` or a `default.nix` to the project directory:
{ pkgs ? import <nixpkgs> {}}: { pkgs ? import <nixpkgs> {}}:
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = [ pkgs.hello ]; packages = [ pkgs.hello ];
} }
``` ```

View file

@ -8,8 +8,7 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in { in {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ]; packages = [ pkgs.bashInteractive ];
buildInputs = [ ];
}; };
}); });
} }