diff options
author | zimbatm <zimbatm@zimbatm.com> | 2013-11-17 14:00:12 +0000 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-11-17 19:53:54 +0100 |
commit | 55639c3aeb20cf799de5394cc6c9229a99ac505c (patch) | |
tree | 48a8761602b44e4ad42497252af3f6c287ce270f /pkgs/tools | |
parent | d33f1a218ecb70a50d4f86463cf82c58ec0c8c88 (diff) | |
download | nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar.gz nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar.bz2 nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar.lz nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar.xz nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.tar.zst nixpkgs-55639c3aeb20cf799de5394cc6c9229a99ac505c.zip |
Adds a new package: direnv
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/direnv/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/direnv/default.nix b/pkgs/tools/misc/direnv/default.nix new file mode 100644 index 00000000000..5588fe3d647 --- /dev/null +++ b/pkgs/tools/misc/direnv/default.nix @@ -0,0 +1,37 @@ +{ fetchurl, stdenv, go }: + +let + version = "2.1.0"; +in +stdenv.mkDerivation { + name = "direnv-${version}"; + src = fetchurl { + url = "http://github.com/zimbatm/direnv/archive/v${version}.tar.gz"; + name = "direnv-${version}.tar.gz"; + sha256 = "4dad14e53aa5a20fd11cdbb907c19a05f16464172af302981adb410bd691cefe"; + }; + + buildInputs = [ go ]; + + buildPhase = "make"; + installPhase = "make install DESTDIR=$out"; + + meta = { + description = "a shell extension that manages your environment"; + longDescription = '' + Once hooked into your shell direnv is looking for an .envrc file in your + current directory before every prompt. + + If found it will load the exported environment variables from that bash + script into your current environment, and unload them if the .envrc is + not reachable from the current path anymore. + + In short, this little tool allows you to have project-specific + environment variables. + ''; + homepage = http://direnv.net; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.zimbatm ]; + }; +} |