nixpkgs/pkgs/development/tools/nailgun/default.nix
Renaud 1f2abb2349
nailgun: 0.9.1 -> 1.0.0 (#50211)
* nailgun: 0.9.1 -> 1.0.0

This release officially announces Nailgun as production-ready. In this release, package namespaces were changed to com.facebook to indicate code ownership, so some code changes might be required when upgrading from 0.9.* to 1.0.0. All APIs remain the same as 0.9.3.

* nailgun: official GitHub repo is now facebook
2018-11-11 00:47:50 +01:00

39 lines
1.1 KiB
Nix

{ stdenv, fetchMavenArtifact, fetchFromGitHub, jre, makeWrapper }:
let
version = "1.0.0";
nailgun-server = fetchMavenArtifact {
groupId = "com.facebook";
artifactId = "nailgun-server";
inherit version;
sha256 = "1mk8pv0g2xg9m0gsb96plbh6mc24xrlyrmnqac5mlbl4637l4q95";
};
in
stdenv.mkDerivation rec {
name = "nailgun-${version}";
src = fetchFromGitHub {
owner = "facebook";
repo = "nailgun";
rev = "nailgun-all-v${version}";
sha256 = "1syyk4ss5vq1zf0ma00svn56lal53ffpikgqgzngzbwyksnfdlh6";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
makeWrapper ${jre}/bin/java $out/bin/ng-server \
--add-flags '-classpath ${nailgun-server.jar}:$CLASSPATH com.facebook.nailgun.NGServer'
'';
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://www.martiansoftware.com/nailgun/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ volth ];
};
}