-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta.pkgConfigModules: Init convention #214304
Conversation
d1617dd
to
c443ac2
Compare
c443ac2
to
9b2b47c
Compare
6ee47b3
to
462e779
Compare
See docs. Follow-up work: - Existing packages should be converted - `defaultPkgConfigPackages` should assert on `meta.pkgConfigModules` and let `tests.pkg-config` alone test the build results. CC @sternenseemann Co-authored-by: Robert Hensing <[email protected]>
462e779
to
6e4a1b1
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-01-06-nixpkgs-architecture-team-meeting-28/25262/1 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/adding-pkg-config-metadata-to-nixpkgs-packages/25281/1 |
stdenv.mkDerivation (finalAttrs: { | ||
... | ||
|
||
nativeBuildInputs = [ pkg-config validatePkgConfig ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan to drop the validation config hook in the future?
Why isn't the hook always called if we have the meta attribute? In case it breaks we could easily turn it off with another one.
Also why isn't it called validatePkgConfigHook? People are used to that hooks are called automatically and would think they need to call some script here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That hook predates this work. We were just documenting it.
Picking up where NixOS#214304 left off.
Picking up where NixOS#214304 left off.
Description of changes
See docs.
Follow-up work:
Existing packages should be converted
defaultPkgConfigPackages
should assert onmeta.pkgConfigModules
and lettests.pkg-config
alone test the build results.CC @roberth @sternenseemann
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes