mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 03:48:57 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
923 B
Nix
27 lines
923 B
Nix
{lib, stdenv, fetchurl, makeWrapper, jre}:
|
|
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";
|
|
};
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
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"
|
|
'';
|
|
meta = with lib; {
|
|
description = "Zipkin distributed tracing system";
|
|
homepage = "https://zipkin.io/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.hectorj ];
|
|
};
|
|
}
|