567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
775 B
Nix
35 lines
775 B
Nix
{
|
|
lib,
|
|
buildPecl,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
let
|
|
version = "1.2.1";
|
|
in
|
|
buildPecl rec {
|
|
inherit version;
|
|
pname = "opentelemetry";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "open-telemetry";
|
|
repo = "opentelemetry-php-instrumentation";
|
|
rev = version;
|
|
hash = "sha256-zUrcikGB3O44ihcw2zOAhInfgF+sXT+Xl2lF7XJphzY=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/ext";
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-parentheses-equality";
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/open-telemetry/opentelemetry-php-instrumentation/releases/tag/${version}";
|
|
description = "OpenTelemetry PHP auto-instrumentation extension";
|
|
homepage = "https://opentelemetry.io/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ gaelreyrol ];
|
|
};
|
|
}
|