15 src = fetchFromGitHub {
19 hash = "sha256-C4FkBS+2MZGGlpWb7ng4Aa9IvqEuY716M5h2W3b8N1E=";
22 vendorHash = "sha256-O2NZgWn00uKLstYPIj9LwyF4kmitJ1FXltazv8RrmZg=";
24 # we have no bash at the moment for windows
25 BASH_PATH = lib.optionalString (!stdenv.hostPlatform.isWindows) "${bash}/bin/bash";
27 # replace the build phase to use the GNUMakefile instead
29 make BASH_PATH=$BASH_PATH
33 make install PREFIX=$out
42 export HOME=$(mktemp -d)
43 make test-go test-bash test-fish test-zsh
47 description = "Shell extension that manages your environment";
49 Once hooked into your shell direnv is looking for an .envrc file in your
50 current directory before every prompt.
52 If found it will load the exported environment variables from that bash
53 script into your current environment, and unload them if the .envrc is
54 not reachable from the current path anymore.
56 In short, this little tool allows you to have project-specific
57 environment variables.
59 homepage = "https://direnv.net";
60 license = licenses.mit;
61 maintainers = [ maintainers.zimbatm ];
62 mainProgram = "direnv";