2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, makeWrapper, jre}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.28.1";
|
|
|
|
pname = "zipkin-server";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://search.maven.org/remotecontent?filepath=io/zipkin/java/zipkin-server/${version}/zipkin-server-${version}-exec.jar";
|
|
|
|
sha256 = "02369fkv0kbl1isq6y26fh2zj5wxv3zck522m5wypsjlcfcw2apa";
|
|
|
|
};
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Zipkin distributed tracing system";
|
|
|
|
homepage = "https://zipkin.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.hectorj ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "zipkin-server";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|