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

Merge branch 'nix-shell-lookup-shell-nix' into more-nix-shell

This commit is contained in:
Robert Hensing 2024-07-07 14:16:15 +02:00
commit 3e424b1040
2 changed files with 9 additions and 5 deletions

View file

@ -26,6 +26,9 @@ let pkgs = rec {
fun() {
echo blabla
}
runHook() {
eval "''${!1}"
}
'';
stdenv = mkDerivation {
@ -54,6 +57,7 @@ let pkgs = rec {
# See nix-shell.sh
polo = mkDerivation {
name = "polo";
inherit stdenv;
shellHook = ''
echo Polo
'';