mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-28 21:21:07 +01:00
11 lines
285 B
Nix
11 lines
285 B
Nix
{ pkgs ? import <nixpkgs> { }, someArg ? null, shellHook ? ''
|
|
echo "Executing shellHook."
|
|
'' }:
|
|
pkgs.mkShellNoCC {
|
|
inherit shellHook;
|
|
|
|
nativeBuildInputs = [ pkgs.hello ];
|
|
SHOULD_BE_SET = someArg;
|
|
|
|
passthru = { subshell = pkgs.mkShellNoCC { THIS_IS_A_SUBSHELL = "OK"; }; };
|
|
}
|