mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
Merge #282
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:
commit
a8e7037a36
2 changed files with 2 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ Either add `shell.nix` or a `default.nix` to the project directory:
|
|||
{ pkgs ? import <nixpkgs> {}}:
|
||||
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = [ pkgs.hello ];
|
||||
packages = [ pkgs.hello ];
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = [ pkgs.bashInteractive ];
|
||||
buildInputs = [ ];
|
||||
packages = [ pkgs.bashInteractive ];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue