2017-06-25 06:46:51 +00:00
|
|
|
{ stdenv, fetchMavenArtifact, fetchFromGitHub, bash, jre, makeWrapper }:
|
2017-06-24 23:14:57 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.9.1";
|
|
|
|
nailgun-server = fetchMavenArtifact {
|
|
|
|
groupId = "com.martiansoftware";
|
|
|
|
artifactId = "nailgun-server";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "09ggkkd1s58jmpc74s6m10d3hyf6bmif31advk66zljbpykgl625";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nailgun-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martylamb";
|
|
|
|
repo = "nailgun";
|
|
|
|
rev = "1ad9ad9d2d17c895144a9ee0e7acb1d3d90fb66f";
|
|
|
|
sha256 = "1f8ac5kg7imhix9kqdzwiav1bxh8vljv2hb1mq8yz4rqsrx2r4w3";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
2017-06-25 06:46:51 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2017-06-24 23:14:57 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -D ng $out/bin/ng
|
|
|
|
|
2017-06-25 06:46:51 +00:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ng-server \
|
|
|
|
--add-flags '-cp ${nailgun-server.jar}:$CLASSPATH com.martiansoftware.nailgun.NGServer'
|
2017-06-24 23:14:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead";
|
|
|
|
homepage = http://martiansoftware.com/nailgun/;
|
|
|
|
license = licenses.apsl20;
|
|
|
|
platforms = platforms.linux;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ volth ];
|
2017-06-24 23:14:57 +00:00
|
|
|
};
|
|
|
|
}
|