Commit Graph

157 Commits

Author SHA1 Message Date
R. Ryantm
27cf3fde5c datadog-agent: 7.71.2 -> 7.75.0 2026-01-28 03:37:00 +00:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00
R. Ryantm
7d15ad2231 datadog-agent: 7.70.2 -> 7.71.2 2025-10-16 15:50:25 +00:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Ryan Omasta
73bb91a546 datadog-agent: 7.56.2 -> 7.70.2
https://github.com/DataDog/datadog-agent/releases/tag/7.70.2
Diff: https://github.com/DataDog/datadog-agent/compare/7.56.2...7.70.2
2025-09-16 12:34:26 -06:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Domen Kožar
19b476ebef various: remove domenkozar from maintainers (#415576) 2025-06-11 10:14:54 +00:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Paul Meyer
f9b5b73f03 datadog-agent: unpin Go builder
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2025-04-02 09:30:18 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Peder Bergebakken Sundt
e171199c50 treewide: replace stdenv.is with stdenv.hostPlatform.is 2025-03-26 23:14:22 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
John Titor
b6788a4612 datadog-integrations-core: moderinize derivation 2024-12-07 22:41:17 +05:30
Mel Bourgeois
2ba6271ecc datadog-integrations-core: 7.50.2 -> 7.56.2 2024-12-02 00:29:04 -06:00
Mel Bourgeois
5121d2de48 datadog-agent: 7.50.3 -> 7.56.2 2024-12-02 00:29:04 -06:00
Mel Bourgeois
ede0d4bd24 datadog-integrations-core: 7.38.0 -> 7.50.2 2024-12-02 00:27:03 -06:00
Paul Meyer
2806062dd6 datadog-agent: mark broken
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-10-28 12:21:29 +01:00
piegames
68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02:00
Paul Meyer
2397001657 datadog-agent: unpin Go version
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-09-26 11:51:14 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Ryan Mulligan
47cb3e6165 datadog-agent: fix 2024-07-03 17:53:36 +02:00
Philip Taron
623a58e4c9 Avoid top-level with ...; in pkgs/tools/networking/dd-agent/integrations-core.nix 2024-03-28 21:30:46 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
c01fdbec00 datadog-agent: 7.50.1 -> 7.50.3 2024-01-20 18:17:04 +00:00
Weijia Wang
34cd278aa4 Merge pull request #274168 from r-ryantm/auto-update/datadog-agent
datadog-agent: 7.49.0 -> 7.50.1
2024-01-03 16:52:10 +01:00
Stanisław Pitucha
3f4bf49ec2 datadog-agent: remove maintainer 2023-12-27 22:15:52 +11:00
R. Ryantm
3e74698d4d datadog-agent: 7.49.0 -> 7.50.1 2023-12-25 15:54:45 +00:00
Rodney Lorrimar
d353adfc06 datadog-agent: Remove self from meta.maintainers
I no longer use this package and am unable to help maintain it.
2023-12-09 18:04:03 +08:00
Pierre Bourdon
f64d29996b Merge pull request #268342 from xvello/patch-1
datadog-agent: fix metric submission
2023-11-26 14:56:24 +01:00
R. Ryantm
52d05a3869 datadog-agent: 7.48.1 -> 7.49.0 2023-11-19 21:13:13 -08:00
Xavier Vello
fa6d090ba3 datadog-agent: fix metric submission 2023-11-18 19:14:21 +01:00
Aaron Jheng
8ea2212f74 datadog: 7.45.1 -> 7.48.1 2023-10-24 15:03:29 +00:00
Fabián Heredia Montiel
ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00
Aaron Jheng
4f2e5c57e1 datadog-agent: unpin go1.18 2023-08-21 16:33:21 +08:00
Mario Rodas
d8001aae54 Merge pull request #242116 from flurie/fix-datadog-agent
datadog-agent: 7.38.1 -> 7.45.1
2023-08-10 20:53:27 -05:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Alexander Flurie
aae530ab37 datadog-agent: 7.38.1 -> 7.45.1 2023-07-07 14:59:54 -04:00
Domen Kožar
ef9639cfba Merge pull request #189795 from cariandrum22/datadog-agent-supress-loading-errors
datadog-agent: suppress datadog-agent loading errors
2023-06-21 11:53:23 +01:00
Aaron Jheng
eb9f0de453 datadog-agent: unpin go1.18 2023-06-01 08:30:30 +00:00
sandydoo
22480044f1 datadog-integrations-core: add missing modules and dependencies 2023-04-27 08:45:28 +00:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Rick van Schijndel
9833d56c24 treewide: mark packages broken that never built on PLATFORM
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.

I manually audited the results and removed some results that were not valid.

Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.

Some observations:

- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
  - gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
  platforms that are not x86_64-linux
2022-12-13 21:40:12 +01:00
Dave Aitken
845e54e94b datadog-agent: add rtloader to LD_LIBRARY_PATH
This fixes the python init error mentioned here:
https://github.com/NixOS/nixpkgs/issues/105221#issuecomment-1251150900

However, there are still issues with the derived python environment - for some
reason datadog_checks.base is not present in the env's site-packages, which all
the other checks depend on, so python loading still isn't working fully (but I
believe this is an improvement over what's there already at least).
2022-12-09 09:15:58 +00:00
Dave Aitken
5727fbea4a datadog-agent: build with go118
If using go119, the agent throws an error at startup:

```
panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the go1.19 runtime
```

I believe this needs a fix in the datadog package itself, similar to:
https://github.com/DataDog/datadog-agent/pull/11455 but for go1.19
2022-12-09 09:14:09 +00:00
Armeen Mahdian
aa20ba5563 dd-agent: remove 2022-09-14 14:11:14 +02:00
Takafumi Asano
796974e32e datadog-agent: suppress datadog-agent loading errors
Loading Errors for apm, process-agent and winproc.d appear on the
datadog agent.

To suppress these errors, I have removed these default configurations
that were copied in the postInstall phase.
2022-09-05 10:05:47 +09:00
Domen Kožar
f576e3a7e3 Merge pull request #185805 from Sohalt/dd-fix-python-integration
Datadog fix python integration
2022-08-30 12:31:32 +01:00
Artturin
c6568adb00 treewide: makeWrapper buildInputs to nativeBuildInputs
most found with https://github.com/siraben/nix-lint
2022-08-16 13:14:19 +03:00
sohalt
fab8a905ab datadog-agent: 7.36.0 -> 7.38.1 2022-08-09 17:49:02 +02:00