Commit Graph

115 Commits

Author SHA1 Message Date
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
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
sohalt
39165f2938 datadog-integrations-core: 7.30.1 -> 7.38.0 2022-08-09 17:49:02 +02:00
sohalt
6f0654817a datadog: fix python integration 2022-08-09 17:49:02 +02:00
Sandro
9b08b9c44f
Merge pull request #168453 from viraptor/viraptor/datadog-without-systemd 2022-06-29 17:20:24 +02:00
Stanisław Pitucha
95a7f0244a datadog-agent: make systemd optional
Allow compiling without systemd support and disable that by default on
non-Linux platforms. This allows compiling the agent on Darwin.
2022-06-29 09:57:41 +10:00
Sandro Jäckel
b134a28381
dd-agent: remove backport ipaddress 2022-05-30 05:55:10 +02:00
R. Ryantm
9f9301f19c datadog-agent: 7.35.1 -> 7.36.0 2022-05-27 08:25:44 +00:00
R. Ryantm
cb8de95296 datadog-agent: 7.35.0 -> 7.35.1 2022-04-22 11:23:07 +00:00
R. Ryantm
b0f5cd418c datadog-agent: 7.34.0 -> 7.35.0 2022-04-11 06:05:44 +00:00
R. Ryantm
12c1e47681 datadog-agent: 7.33.1 -> 7.34.0 2022-03-03 04:15:17 +00:00
R. RyanTM
8d95ce925b
datadog-agent: 7.33.0 -> 7.33.1
(#159871)
2022-02-16 23:37:29 +01:00
R. Ryantm
bccb7f8ce0 datadog-agent: 7.32.4 -> 7.33.0 2022-02-12 21:21:58 -08:00
R. Ryantm
9f6e0d26ce datadog-agent: 7.32.1 -> 7.32.4 2021-12-27 04:56:42 +00:00
R. Ryantm
baaaf41996 datadog-agent: 7.31.0 -> 7.32.1 2021-12-06 12:54:57 +00:00
R. RyanTM
f1cf85d1ed datadog-agent: 7.30.2 -> 7.31.0 2021-09-16 06:41:34 +00:00
John Soo
cdae1d60d1 datadog-agent: Add process to default integrations. 2021-09-11 15:32:14 -07:00
John Soo
818cabf53b datadog-agent: Don't use invoke during build. 2021-09-11 15:32:14 -07:00
John Soo
f98ae8d59e datadog-process-agent: 6.11.1 -> 7.30.2 2021-09-11 15:32:14 -07:00
John Soo
82d8e2f0b4 datadog-integrations-core: git-2018-09-18 -> 7.30.1 2021-09-11 15:32:14 -07:00
John Soo
f2d81d2484 datadog-agent: 6.11.2 -> 7.30.2
datadog-agent is now built as a go module.  However, the build process
is now to be driven by the python invoke tool.  While datadog-agent
builds with buildGoModule, some investigation should be done to ensure
we are not missing any integrations or features from the invoke build
system.

This also updates datadog-agent from python 2.7 to 3.x.

One other issue of note: most of the invoke tasks seem to use some git
parsing to get version numbers and the like. This package may need to
be checked for reproducibility issues now.
2021-09-07 23:52:22 -07:00
Martin Weinelt
6b77988f96
treewide: prometheus_client -> prometheus-client 2021-08-26 02:21:59 +02:00
Robert Schütz
9653f60340 dd-agent: use python2Packages.pg8000
It refers to the same version as python2Packages.pg8000_1_12.
2021-06-23 00:05:10 +02:00
Sandro Jäckel
7b4d273d3c
pythonPackages: websocket_client -> websocket-client 2021-06-15 22:03:10 +02:00
Frederik Rietdijk
3842c35a2d dd-agent: stay with python2 2021-03-25 12:08:31 +01:00
Jan Tojnar
2445e9a681
Merge branch 'master' into staging-next 2021-03-18 19:24:39 +01:00
Sandro Jäckel
748c446969
dd-agent_5: only use backports_ssl_match_hostname for python <= 3.7 2021-03-17 22:55:12 +01:00
Ben Siraphob
127733211e
treewide: unzip buildInputs to nativeBuildInputs (#112302) 2021-02-20 16:01:53 -05:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
zowoq
2ab13ca162 treewide: add final newline 2021-01-22 07:40:43 +10:00
Ben Siraphob
76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Florian Klink
40d2968ebf
Merge pull request #94354 from flokli/systemd-246
systemd: 245.6 -> 246
2020-08-24 12:42:24 +02:00
zowoq
a83a88db05 buildGoPackage: remove platform.all from packages 2020-08-15 19:34:47 -07:00
Florian Klink
d6f3b96a5d datadog-agent: use lib.getLib systemd instead of systemd.lib
This will pick the `lib` output if it exists, otherwise default to `out`.
2020-08-13 20:51:41 +02:00
zowoq
b5dc07a4b4 treewide: use $out instead of $bin with buildGoPackage 2020-04-28 20:30:29 +10:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Domen Kožar
2004784aa4
datadog-agent: enable secrets and allow extending tags 2019-12-23 10:43:15 +01:00
volth
7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Casey Ransom
35d58c3421 datadog-agent: fix extraIntegrations
The override that builds the custom python for integrations-core was
overriding python, but pythonPackages was still being inherited from a
call to `datadog-integrations-core {}`, causing
service.datadog-agent.extraIntegrations to be ignored.
2019-07-01 11:45:19 -04:00
Izorkin
0ed2f0251b datadog-agent: fix sha256 sum 2019-05-30 11:48:04 +03:00
Izorkin
4125801c35 datadog-process-agent: 6.11.0 -> 6.11.1 2019-05-21 21:05:18 +03:00