nix-direnv: add preInstall/postInstall hooks

This commit is contained in:
Jörg Thalheim 2020-05-11 06:49:23 +01:00
parent d531e72397
commit 9d405dd370
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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; {