3
0
Fork 0
forked from mirrors/nixpkgs

direnv: add fish shell hook for NixOS

This commit is contained in:
Patrick Callahan 2017-04-03 16:29:26 -07:00 committed by Jörg Thalheim
parent 0054865f7e
commit 855ae68648
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, go, bash }:
{ stdenv, fetchFromGitHub, go, bash, writeText}:
stdenv.mkDerivation rec {
name = "direnv-${version}";
@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
installPhase = ''
make install DESTDIR=$out
mkdir -p $out/share/fish/vendor_conf.d
echo "eval ($out/bin/direnv hook fish)" > $out/share/fish/vendor_conf.d/direnv.fish
'';
meta = with stdenv.lib; {