2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchMavenArtifact, fetchFromGitHub, jre, makeWrapper }:
|
2017-06-25 01:14:57 +02:00
|
|
|
|
|
|
|
let
|
2018-11-11 00:47:50 +01:00
|
|
|
version = "1.0.0";
|
2017-06-25 01:14:57 +02:00
|
|
|
nailgun-server = fetchMavenArtifact {
|
2018-11-11 00:47:50 +01:00
|
|
|
groupId = "com.facebook";
|
2017-06-25 01:14:57 +02:00
|
|
|
artifactId = "nailgun-server";
|
|
|
|
inherit version;
|
2018-11-11 00:47:50 +01:00
|
|
|
sha256 = "1mk8pv0g2xg9m0gsb96plbh6mc24xrlyrmnqac5mlbl4637l4q95";
|
2017-06-25 01:14:57 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nailgun-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-11-11 00:47:50 +01:00
|
|
|
owner = "facebook";
|
2017-06-25 01:14:57 +02:00
|
|
|
repo = "nailgun";
|
2018-11-11 00:47:50 +01:00
|
|
|
rev = "nailgun-all-v${version}";
|
|
|
|
sha256 = "1syyk4ss5vq1zf0ma00svn56lal53ffpikgqgzngzbwyksnfdlh6";
|
2017-06-25 01:14:57 +02:00
|
|
|
};
|
|
|
|
|
2018-11-11 00:47:50 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-06-25 01:14:57 +02:00
|
|
|
|
2018-11-11 00:47:50 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-06-25 01:14:57 +02:00
|
|
|
|
2018-11-11 00:47:50 +01:00
|
|
|
postInstall = ''
|
2017-06-25 08:46:51 +02:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ng-server \
|
2018-11-11 00:47:50 +01:00
|
|
|
--add-flags '-classpath ${nailgun-server.jar}:$CLASSPATH com.facebook.nailgun.NGServer'
|
2017-06-25 01:14:57 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead";
|
2018-11-11 00:47:50 +01:00
|
|
|
homepage = http://www.martiansoftware.com/nailgun/;
|
|
|
|
license = licenses.asl20;
|
2017-06-25 01:14:57 +02:00
|
|
|
platforms = platforms.linux;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = with maintainers; [ volth ];
|
2017-06-25 01:14:57 +02:00
|
|
|
};
|
|
|
|
}
|