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:
commit
3e424b1040
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue