3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/nosql/neo4j/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

40 lines
1.1 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre, which, gnused }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "neo4j-${version}";
version = "2.1.3";
src = fetchurl {
url = "http://dist.neo4j.org/neo4j-community-${version}-unix.tar.gz";
sha256 = "0gcyy6ayn8qvxj6za5463lgy320mn4rq7q5qysc26fxjd73drrrk";
};
buildInputs = [ makeWrapper jre which gnused ];
patchPhase = ''
substituteInPlace "bin/neo4j" --replace "NEO4J_INSTANCE=\$NEO4J_HOME" ""
'';
installPhase = ''
mkdir -p "$out/share/neo4j"
cp -R * "$out/share/neo4j"
mkdir -p "$out/bin"
makeWrapper "$out/share/neo4j/bin/neo4j" "$out/bin/neo4j" \
--prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin"
makeWrapper "$out/share/neo4j/bin/neo4j-shell" "$out/bin/neo4j-shell" \
--prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin"
'';
meta = with stdenv.lib; {
description = "A highly scalable, robust (fully ACID) native graph database";
homepage = "http://www.neo4j.org/";
license = licenses.gpl3;
maintainers = [ maintainers.offline ];
platforms = stdenv.lib.platforms.unix;
};
}