2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchurl, makeWrapper, jre}:
|
2017-07-09 12:44:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.28.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zipkin-server";
|
2017-07-09 12:44:34 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://search.maven.org/remotecontent?filepath=io/zipkin/java/zipkin-server/${version}/zipkin-server-${version}-exec.jar";
|
|
|
|
sha256 = "02369fkv0kbl1isq6y26fh2zj5wxv3zck522m5wypsjlcfcw2apa";
|
|
|
|
};
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-07-09 12:44:34 +02:00
|
|
|
|
|
|
|
buildCommand =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp ${src} $out/share/java/zipkin-server-${version}-exec.jar
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/zipkin-server \
|
|
|
|
--add-flags "-cp $out/share/java/zipkin-server-${version}-exec.jar org.springframework.boot.loader.JarLauncher"
|
|
|
|
'';
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-09 12:44:34 +02:00
|
|
|
description = "Zipkin distributed tracing system";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://zipkin.io/";
|
2017-07-09 12:44:34 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.hectorj ];
|
|
|
|
};
|
|
|
|
}
|