diff options
| author | David Morgan <djm_uk@protonmail.com> | 2026-06-23 17:25:06 +0100 |
|---|---|---|
| committer | David Morgan <djm_uk@protonmail.com> | 2026-06-23 17:25:06 +0100 |
| commit | 1f3b9a188602dd637e3111107455de0883df315d (patch) | |
| tree | 6515f235de8c321dd1c344b3caadab85777dfe1e | |
| parent | 8a39770da5e1186f385761df65118e4e8ad89ad4 (diff) | |
| download | dotfiles-1f3b9a188602dd637e3111107455de0883df315d.tar.gz | |
Update pup derivation
| -rw-r--r-- | nix-conf/pkgs/datadog-pup/default.nix | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/nix-conf/pkgs/datadog-pup/default.nix b/nix-conf/pkgs/datadog-pup/default.nix index f8c64d6..d76123b 100644 --- a/nix-conf/pkgs/datadog-pup/default.nix +++ b/nix-conf/pkgs/datadog-pup/default.nix @@ -1,31 +1,57 @@ { lib, - rustPlatform, + cacert, fetchFromGitHub, + nix-update-script, + rustPlatform, + stdenv, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "datadog-pup"; - version = "1.1.0"; + version = "1.2.2"; + + __structuredAttrs = true; + strictDeps = true; src = fetchFromGitHub { owner = "DataDog"; repo = "pup"; - rev = "v${finalAttrs.version}"; - hash = "sha256-Q92ulh4Sv177te2/xu0nac5NqwHO54EEwHa97i439mY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-XtxpqDLjd9DyjPafdEcdfou3Uxi0+yGtIHV06P6Vg0k="; }; - cargoHash = "sha256-ZwS8fgjPr/UcAmItpl3qXUvlAdVz8rWQrXskeubC5t0="; + cargoHash = "sha256-zS49McXT65zC1SZyX97FRnNHhzF2yIWGLG/wLzZOfH8="; + + 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 + ''; - # Upstream's test build is broken (src/commands/auth.rs references an - # undefined `token` function), so the binary builds but `cargo test` fails. - doCheck = false; + passthru.updateScript = nix-update-script { }; meta = { - description = "CLI giving AI agents access to Datadog's observability platform"; + 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; }; }) |