Commit Graph

75 Commits

Author SHA1 Message Date
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
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
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
Anna Lee
b69ef74c95 collectd: fix building with python3.11
add upstream patch
623e95394e
to fix building with python3.11
2023-11-14 09:07:03 +01:00
figsoda
0d6cac9f5a pkgs/tools/system: remove dead code 2023-07-25 12:12:44 -04:00
Robert Schütz
44587571d2 collectd: use python3 2022-11-25 00:07:27 -08:00
Franz Pletz
c092a502df
treewide: remove myself as maintainer from some pkgs
Only packages I'm not able to maintain anymore as of today. Mostly
because I'm haven't been using them in a while.
2022-08-03 14:17:51 +02:00
squalus
578f540e4b collectd: support cross compile
Prevent the double memory layout check from running during cross
compile. Provide an answer that works for both x86_64 and aarch64.
2022-05-05 22:13:33 -07:00
Guillaume Girol
7a6506fc79
Merge pull request #158353 from symphorien/collectd-xen-insecure-master
collectd: don't build with xen plugin by default
2022-02-09 19:13:10 +00:00
Guillaume Girol
0955a4fa35 collectd: don't build with xen plugin by default
xen was marked as insecure
2022-02-06 14:13:01 +01:00
Peter Hoeg
15e36831c2 collectd-data: we only need collectd.src - not collectd.out 2022-02-06 21:10:35 +08:00
Robert Schütz
d5cceedbd1 python,pythonPackages: make aliases
Since aliases are disallowed in nixpkgs, this makes usage of Python 2
which is EOL more explicit.
2022-01-16 18:39:59 +00:00
Guillaume Girol
d96a3994cc nixos/collectd: validate config file syntax at build time 2021-12-23 00:08:43 +01:00
Guillaume Girol
b55a253e15 nixos/collectd: add nixos test 2021-12-23 00:08:43 +01:00
Astro
4dacd7461f collectd: move IOKit input to all-packages.nix 2021-08-25 12:03:19 +02:00
Astro
11a144c6f3 collectd: shorten plugins buildInputs definition 2021-08-25 12:03:19 +02:00
Astro
39adcbca30 collectd: reduce plugin configuration by configuring --disable-all-plugins 2021-08-25 12:03:18 +02:00
Astro
a064c4d533 collectd: remove virt plugin dependencies that are no longer used 2021-08-25 12:03:18 +02:00
Astro
b102c5f715 collectd: add dependencies for plugins notify_email, openldap, openipmi, xencpu 2021-08-25 12:02:59 +02:00
Felix Buehler
10af5753c9 collectd-data: deprecate phases 2021-07-20 12:28:59 +02:00
Ben Siraphob
d6aeae8f90 pkgs/tools: pkgconfig -> pkg-config (2) 2021-01-17 23:27:27 +07: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
R. RyanTM
85255c33f5 collectd: 5.11.0 -> 5.12.0 2020-09-07 16:12:19 +00:00
R. RyanTM
73772f37c5 collectd: 5.10.0 -> 5.11.0 2020-05-01 09:07:01 +02:00
Martin Milata
970ce2863f collectd: 5.8.1 -> 5.10.0 2020-03-10 18:05:59 +01:00
Jörg Thalheim
725f85e271
net-snmp: rename from net_snmp 2019-12-21 22:56:08 +00:00
Astro
690b3c4e19 collectd: add lua plugin buildInputs 2019-10-20 00:53:49 +02:00
Astro
06abd24886 nixos/collectd: add option buildMinimalPackage 2019-10-20 00:53:49 +02:00
Astro
efab039575 collectd: parameterize with optional enabledPlugins 2019-10-20 00:53:49 +02:00
Vladimír Čunát
22a216849b
Re-Revert "Merge branch 'staging-next'"
This reverts commit f8a8fc6c7c.
2019-09-22 09:38:09 +02:00
Vladimír Čunát
f8a8fc6c7c
Revert "Merge branch 'staging-next'"
This reverts commit 41af38f372, reversing
changes made to f0fec244ca.

Let's delay this.  We have some serious regressions.
2019-09-21 20:05:09 +02:00
Izorkin
329a88efa7 treewide: replace mysql.connector-c to libmysqlclient 2019-09-09 15:55:34 +03:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +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
worldofpeace
b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
Jörg Thalheim
ce2cea80bf
collectd: add comment regarding propagated libraries 2018-12-21 13:43:10 +01:00
Jörg Thalheim
e7ad85552e
Revert "Revert "collectd: fix build with lm_sensors" (#52619)"
This reverts commit c5398741e0.
2018-12-21 13:39:23 +01:00
Timo Kaufmann
c5398741e0
Revert "collectd: fix build with lm_sensors" (#52619) 2018-12-21 13:11:22 +01:00
Jörg Thalheim
46b75db767
collectd: fix build with lm_sensors 2018-12-21 11:27:36 +01:00
Franz Pletz
a2412a765f
collectd: 5.8.0 -> 5.8.1 2018-11-20 13:43:20 +01:00
Silvan Mosberger
57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Luke Adams
6e316ed6a3 collectd: kafka patch for 18.03 (#36257) 2018-03-03 17:33:48 +00:00
Frederik Rietdijk
2d0bead714 Merge remote-tracking branch 'upstream/master' into HEAD 2017-12-30 17:04:54 +01:00
volth
4026ea9c8a collectd: 5.7.2 -> 5.8.0
This is https://github.com/NixOS/nixpkgs/pull/32811 without refactoring parts.

Closes #32811
2017-12-29 17:34:55 +00:00
Orivej Desh
3c8cff253e Revert "collectd: 5.7.2 -> 5.8.0"
This reverts commit 7b9c5b4849.

This is incomplete, collectd is being updated in
https://github.com/NixOS/nixpkgs/pull/32811
2017-12-29 13:48:09 +00:00
Franz Pletz
7b9c5b4849
collectd: 5.7.2 -> 5.8.0 2017-12-29 11:37:20 +01:00
Robin Gloster
6903ea6050 treewide: libmysql -> mysql.connector-c 2017-12-29 02:18:35 +01:00
Tuomas Tynkkynen
94e88d6bae collectd: Fix build after LVM2 upgrade 2017-10-22 18:23:32 +03:00
Orivej Desh
fda26c8476 Merge branch 'master' into staging
* master: (271 commits)
  pysmbc: clarify license
  pysmbc: fix license
  bazel: 0.5.4 -> 0.6.0 (#29990)
  googler: init at 3.3
  go: declare support for aarch64
  firefox-beta-bin: 56.0b5 -> 57.0b4
  spotify: 1.0.64.401.g9d720389-21 -> 1.0.64.407.g9bd02c2d-26
  gogs: 0.11.19 -> 0.11.29
  grafana: 4.5.1 -> 4.5.2
  mopidy-iris: 3.4.1 -> 3.4.9
  nextcloud: 12.0.2 -> 12.0.3
  haskell-json-autotype: jailbreak to fix build within LTS 9.x
  kore: fix up
  kore: init at 2.0.0
  glusterfs service: fix issues with useRpcbind
  tig: 2.2.2 -> 2.3.0
  haskell-hspec-core: enable test suite again
  hackage-packages.nix: automatic Haskell package set update
  librsvg: fix thumbnailer path
  awscli: 1.11.108 -> 1.11.162
  ...
2017-10-02 00:22:12 +00:00