forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
916 B
Nix
30 lines
916 B
Nix
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gremlin-console";
|
|
version = "3.4.8";
|
|
src = fetchzip {
|
|
url = "http://www-eu.apache.org/dist/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
|
|
sha256 = "13ycr6ppyrz9rq7dasabjdk8lcsxdj3krb4j7d2jmbh2hij1rdvf";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/opt
|
|
cp -r ext lib $out/opt/
|
|
install -D bin/gremlin.sh $out/opt/bin/gremlin-console
|
|
makeWrapper $out/opt/bin/gremlin-console $out/bin/gremlin-console \
|
|
--prefix PATH ":" "${openjdk}/bin/" \
|
|
--set CLASSPATH "$out/opt/lib/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://tinkerpop.apache.org/";
|
|
description = "Console of the Apache TinkerPop graph computing framework";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.lewo ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|