nixpkgs/pkgs/tools/misc/direnv/default.nix
Bjørn Forsman bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00

36 lines
1.1 KiB
Nix

{ fetchurl, stdenv, go }:
stdenv.mkDerivation rec {
name = "direnv-${version}";
version = "2.8.0";
src = fetchurl {
url = "http://github.com/zimbatm/direnv/archive/v${version}.tar.gz";
name = "direnv-${version}.tar.gz";
sha256 = "1l1kvjgpak7cc9s37qipfw6lybb4650zwd8kcdagm409gs89mil6";
};
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;
maintainers = [ stdenv.lib.maintainers.zimbatm ];
platforms = go.meta.platforms;
};
}