1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{ pkgs, ... }:
# jaeger-all-in-one is a single static binary, so we just unpack it and put it
# on $out/bin. (There used to be a docker-run wrapper here, but docker is not
# available on the servers and the binary runs fine on its own.)
pkgs.stdenv.mkDerivation {
  pname = "jaeger";
  version = "1.49.0";
  src = pkgs.fetchurl {
    url = "https://github.com/jaegertracing/jaeger/releases/download/v1.49.0/jaeger-1.49.0-linux-amd64.tar.gz";
    hash = "sha256-QhxISDlk/t431EesgVkHWTe7yiw2B+yyfq//GLP0As4=";
  };
  phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
  installPhase = ''
    mkdir -p $out/bin
    install ./jaeger-all-in-one $out/bin
  '';
}