lol

Add neo4j database

authored by

Jaka Hudoklin and committed by
Michael Raskin
503b8afa 35bf3616

+41
+39
pkgs/servers/nosql/neo4j/default.nix
··· 1 + { stdenv, fetchurl, makeWrapper, jre, which, gnused }: 2 + 3 + with stdenv.lib; 4 + 5 + stdenv.mkDerivation rec { 6 + name = "neo4j-${version}"; 7 + version = "2.1.3"; 8 + 9 + src = fetchurl { 10 + url = "http://dist.neo4j.org/neo4j-community-${version}-unix.tar.gz"; 11 + sha256 = "0gcyy6ayn8qvxj6za5463lgy320mn4rq7q5qysc26fxjd73drrrk"; 12 + }; 13 + 14 + buildInputs = [ makeWrapper jre which gnused ]; 15 + 16 + patchPhase = '' 17 + substituteInPlace "bin/neo4j" --replace "NEO4J_INSTANCE=\$NEO4J_HOME" "" 18 + ''; 19 + 20 + installPhase = '' 21 + mkdir -p "$out/share/neo4j" 22 + cp -R * "$out/share/neo4j" 23 + 24 + mkdir -p "$out/bin" 25 + makeWrapper "$out/share/neo4j/bin/neo4j" "$out/bin/neo4j" \ 26 + --prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin" 27 + makeWrapper "$out/share/neo4j/bin/neo4j-shell" "$out/bin/neo4j-shell" \ 28 + --prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin" 29 + ''; 30 + 31 + meta = with stdenv.lib; { 32 + description = "a highly scalable, robust (fully ACID) native graph database"; 33 + homepage = "http://www.neo4j.org/"; 34 + license = licenses.gpl3; 35 + 36 + maintainers = [ maintainers.offline ]; 37 + platforms = stdenv.lib.platforms.unix; 38 + }; 39 + }
+2
pkgs/top-level/all-packages.nix
··· 6952 6952 6953 6953 nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { }; 6954 6954 6955 + neo4j = callPackage ../servers/nosql/neo4j { }; 6956 + 6955 6957 net_snmp = callPackage ../servers/monitoring/net-snmp { }; 6956 6958 6957 6959 oidentd = callPackage ../servers/identd/oidentd { };