Commit Graph

7 Commits

Author SHA1 Message Date
Sergey Vlasov
32dc3d46b2 filterPackages: Fix a typo in the comment 2022-06-24 00:32:04 +03:00
Sergey Vlasov
3b6a41d794 filterPackages: Do not use meta.hydraPlatforms for filtering
The meta.hydraPlatforms attribute was never intended to mark the package
broken; actually lots of packages have `meta.hydraPlatforms = []` while
being perfectly usable.  Typical reasons for disabling Hydra builds are:

  - the package build process is so trivial that caching the build
    results on Hydra won't be useful (this often applies to wrapper
    packages, or some packages which contain just prebuilt data or
    binaries);

  - the package build process exceeds Hydra limits;

  - the package is impure and depends on some proprietary software
    installed on the build host (this is the case with some
    Darwin-specific packages that require Xcode to build);

  - the package license does not allow redistribution of binaries (which
    also may need to be modified to work with Nix, and many proprietary
    licenses don't allow redistribution of such modified binaries);
    although this should normally be handled with meta.unfree.

Especially the first case (wrapper packages) hits some important
packages (firefox, neovim).

Remove the usage of meta.hydraPlatforms from the filterPackages code, so
that the filtering performed by that function would match the actual
platform restriction of packages (meta.platforms and meta.badPlatforms).
2022-06-24 00:07:55 +03:00
Sergey Vlasov
3ff4550a66 filterPackages: Add support for meta.badPlatforms
Since https://www.github.com/NixOS/nixpkgs/pull/37803 Nixpkgs supports
using meta.badPlatforms to specify a list of platforms which are not
supported by the package despite being included in meta.platforms.
Modify filterPackages to honor these platform restrictions.
2022-06-24 00:01:45 +03:00
Gytis Ivaskevicius
98c8d36b18
Add checks-utils (#36)
* Add checks-utils overlay

Add checks-utils overlay

Fix example flake inputs

Fix string expected exception

* Update check-utils implementation

* nixpkgs-fmt
2021-06-14 10:47:39 +02:00
Pacman99
b543720b25
filterPackages: add fallbacks for missing attrs (#32)
Co-authored-by: Pacman99 <pachum99@gmail.com>
2021-05-11 19:05:05 +00:00
David Arnold
2ebf2558e5
fixup (#31) 2021-04-25 10:08:52 +00:00
David Arnold
c6169a2772
imp: filterPackages (#28)
* imp: filterPackages

* Update filterPackages.nix

* Update filterPackages.nix

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-04-12 10:52:05 +02:00