mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
17 lines
342 B
Nix
17 lines
342 B
Nix
{
|
|
pkgs ? import (builtins.getFlake (toString ./.)).inputs.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"; };
|
|
};
|
|
}
|