Commit Graph

23 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
Jan Tojnar
064ee2cb49 libsoup_2_4: Rename from libsoup
The 2.4 ABI branch has not been supported by upstream for a while now but people still keep accidentally adding it to new packages.
2024-12-08 00:37:52 +01:00
Artturin
f489e8a382
tests.pkg-config.defaultPkgConfigPackages.wayland-scanner: fix the test (#346086) 2024-10-26 20:01:07 +03:00
Sergei Trofimovich
96cbd5b453 tests.pkg-config.defaultPkgConfigPackages.wayland-scanner: fix the test
Without the change the test fails as https://hydra.nixos.org/build/271903139:

     pkg-config module wayland-scanner was not found
2024-10-03 07:19:16 +01:00
Emily
8d6e101893 tests.pkg-config: extend current Nixpkgs configuration
This was enabling aliases on ofborg.
2024-09-26 00:38:18 +01:00
Jan Tojnar
77f5a747f4 gnome2.gnome_vfs: remove
This has been long dead.
2024-07-03 22:43:41 +02:00
ajs124
02ad3159b0 ruby_2_7: remove 2024-01-02 15:30:06 +01:00
Adam Joseph
80472e3754 treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobs 2023-12-15 05:13:46 -08:00
Raito Bezarius
529892d918 ruby_3_0: drop
Ruby EOL is 31 March 2024, that is, during NixOS 23.11.
We drop it early now to avoid any problem during the release time.
2023-11-17 16:03:00 +01:00
John Ericson
420f7d5ed7 pkg-config-data.json: Avoid an alias 2023-09-21 10:33:47 -04:00
sternenseemann
af60e68744 testers.hasPkgConfigModules: allow checking multiple pkg-config mods
This is very useful in conjunction with meta.pkgConfigModules, as the
new tester can use the list provided by this meta attribute as a default
value for moduleNames, making its usage in passthru.tests very
convenient.

For backwards compatibility, a shim under the old name is maintained
with a warning.
2023-08-08 19:16:48 +02:00
Nick Cao
d2c39ba0b0
tests.pkg-config.defaultPkgConfigPackages: fix cross compilation 2023-05-13 12:55:22 +08:00
Adam Joseph
07c9ae7a65 test-defaultPkgConfigPackages.nix: filter out recurseForDerivations
The command at the top of this file fails to evaluate:

```
$ nix-build -A tests.pkg-config.defaultPkgConfigPackages
in job ‘nixpkgs.tests.pkg-config.defaultPkgConfigPackages.tests-combined.x86_64-linux’:
error: pkg-config module `recurseForDerivations` is not defined to be a derivation. Please check the attribute value for `recurseForDerivations` in `pkgs/top-level/pkg-config-packages.nix` in Nixpkgs.
```

This is also causing eval errors on Hydra:

  https://hydra.nixos.org/jobset/nixos/pr-209870-gcc-external-bootstrap#tabs-errors

Let's filter out `recurseForDerivations=true` from the attrset,
since it exists mainly as a flag to signal special handling when
recursing.
2023-03-17 20:44:31 -07:00
sternenseemann
c5a0a5ac5e curl: add pkg-config metadata for libcurl.pc
I did not add the validatePkgConfig setup hook to curl, as I suspect it
may cause trouble when bootstrapping.
2023-02-15 13:52:15 +01:00
Robert Hensing
9520feaf76 Revert "Revert "tests.defaultPkgConfigPackages: Add recurseIntoAttrs""
This reverts commit deed04ab81.
2023-01-31 15:12:04 +01:00
K900
deed04ab81 Revert "tests.defaultPkgConfigPackages: Add recurseIntoAttrs"
This reverts commit f192e96d07.
2023-01-30 21:02:30 +03:00
Robert Hensing
b6bec17eb9 testers.hasPkgConfigModule: Extract and add tests, docs 2023-01-30 00:35:34 +01:00
Robert Hensing
f192e96d07 tests.defaultPkgConfigPackages: Add recurseIntoAttrs 2023-01-30 00:35:34 +01:00
Robert Hensing
974d331e14 pkg-config-data.json: Remove m and pthread
These aren't actually pkg-config packages, but packages that
happen to be in cabal2nix's mapping for cabal reasons. They do not
belong in this file.
2023-01-29 09:51:55 +01:00
Robert Hensing
3be7ea8c89 top-level/pkg-config: Make tests easy to find 2023-01-29 09:51:55 +01:00
Robert Hensing
811bf8ade0 pkg-config-data.json: Add version 2023-01-29 09:51:55 +01:00
Robert Hensing
09eb09b9c5 pkg-config-data.json: Encode platform support 2023-01-29 09:51:55 +01:00
Robert Hensing
81a541e6b6 defaultPkgConfigPackages: Make it JSON
With a bit of help from:

```
nix-repl> :b (formats.json {}).generate "hi" { modules = lib.mapAttrs (k: v: { attrPath = v; }) (p (paths [] pkgs // { stdenv = { isDarwin = false; isLinux = false; };})); }
```
2023-01-29 09:51:55 +01:00