diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-05-11 06:49:23 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-05-11 06:49:23 +0100 |
commit | 9d405dd370246059cf774c2af86438c2e6324240 (patch) | |
tree | 84753b69e011a237e48769c7a9695f2445a2f394 /pkgs/tools/misc/nix-direnv | |
parent | d531e723977ed1c510b224bd908d3614cb34a213 (diff) |
nix-direnv: add preInstall/postInstall hooks
Diffstat (limited to 'pkgs/tools/misc/nix-direnv')
-rw-r--r-- | pkgs/tools/misc/nix-direnv/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nix-direnv/default.nix b/pkgs/tools/misc/nix-direnv/default.nix index 2d1337955009c..299550aa0cbf9 100644 --- a/pkgs/tools/misc/nix-direnv/default.nix +++ b/pkgs/tools/misc/nix-direnv/default.nix @@ -21,7 +21,9 @@ stdenv.mkDerivation rec { ''; installPhase = '' + runHook preInstall install -m500 -D direnvrc $out/share/nix-direnv/direnvrc + runHook postInstall ''; meta = with stdenv.lib; { |