282: Prefer `packages` over `nativeBuildInputs` r=Mic92 a=hannseman



Co-authored-by: Hannes Ljungberg <hannes.ljungberg@gmail.com>
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
bors[bot] 2023-01-19 09:46:22 +00:00 committed by GitHub
commit a8e7037a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 = [ ];
}; };
}); });
} }