mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
nix-shell: Look for shell.nix when directory is specified
This commit is contained in:
parent
76245ffbeb
commit
b865625a8e
5 changed files with 88 additions and 9 deletions
|
@ -45,6 +45,17 @@ let pkgs = rec {
|
|||
TEST_inNixShell = if inNixShell then "true" else "false";
|
||||
inherit stdenv;
|
||||
outputs = ["dev" "out"];
|
||||
} // {
|
||||
shellHook = abort "Ignore non-drv shellHook attr";
|
||||
};
|
||||
|
||||
# https://github.com/NixOS/nix/issues/5431
|
||||
# See nix-shell.sh
|
||||
polo = mkDerivation {
|
||||
name = "polo";
|
||||
shellHook = ''
|
||||
echo Polo
|
||||
'';
|
||||
};
|
||||
|
||||
# Used by nix-shell -p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue