mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 12:50:04 +00:00
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
cacert,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
stdenv,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "datadog-pup";
|
|
version = "1.10.8";
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DataDog";
|
|
repo = "pup";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-EETtgS9ubFa8aQxefXyZiu8CNfqf7PpyqCCpz07Ld9I=";
|
|
};
|
|
|
|
cargoHash = "sha256-IhGAykqkxTnLtbHW0hh3a/7SkY5XxaA/ZP9czfXWPrM=";
|
|
|
|
checkType = "debug";
|
|
dontUseCargoParallelTests = true;
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
checkFlags = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
|
|
# This test is missing a case for aarch64-linux
|
|
"--skip=extensions::install::tests::test_find_platform_asset_found"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
preCheck = ''
|
|
export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "CLI for Datadog's observability platform";
|
|
homepage = "https://github.com/DataDog/pup";
|
|
changelog = "https://github.com/DataDog/pup/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "pup";
|
|
maintainers = with lib.maintainers; [ deejayem ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|