6 , enableFlakes ? null # deprecated
8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
13 owner = "nix-community";
16 sha256 = "sha256-6UvOnFmohdhFenpEangbLLEdE0PeessRJjiO0mcydWI=";
19 # Substitute instead of wrapping because the resulting file is
20 # getting sourced, not executed:
22 sed -i "1a NIX_BIN_PREFIX=${nix}/bin/" direnvrc
23 substituteInPlace direnvrc --replace "grep" "${gnugrep}/bin/grep"
28 install -m500 -D direnvrc $out/share/nix-direnv/direnvrc
33 description = "A fast, persistent use_nix implementation for direnv";
34 homepage = "https://github.com/nix-community/nix-direnv";
35 license = licenses.mit;
36 platforms = platforms.unix;
37 maintainers = with maintainers; [ mic92 bbenne10 ];