2013-11-17 15:00:12 +01:00
|
|
|
{ fetchurl, stdenv, go }:
|
|
|
|
|
|
|
|
let
|
2014-01-12 16:31:48 +01:00
|
|
|
version = "2.2.1";
|
2013-11-17 15:00:12 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "direnv-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/zimbatm/direnv/archive/v${version}.tar.gz";
|
|
|
|
name = "direnv-${version}.tar.gz";
|
2014-01-12 16:31:48 +01:00
|
|
|
sha256 = "6d55cb96189e20609a08133fe9392c50209cd435b4f77e3baaa0f423d82ae59a";
|
2013-11-17 15:00:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2013-12-11 12:08:12 +01:00
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2013-11-17 15:00:12 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.zimbatm ];
|
|
|
|
};
|
|
|
|
}
|