1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

nix-shell: Look for shell.nix when directory is specified

This commit is contained in:
Robert Hensing 2024-07-06 21:31:24 +02:00
parent 76245ffbeb
commit 73602a7c6f
5 changed files with 88 additions and 9 deletions

View file

@ -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