-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
WIP p11-kit: use meson #73341
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
WIP p11-kit: use meson #73341
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||
| { stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, which | ||||||
| , gettext, libffi, libiconv, libtasn1 | ||||||
| { stdenv, fetchFromGitHub, fetchpatch, meson, pkgconfig, which | ||||||
| , gettext, libffi, libiconv, libtasn1, ninja | ||||||
| }: | ||||||
|
|
||||||
| stdenv.mkDerivation rec { | ||||||
|
|
@@ -16,17 +16,12 @@ stdenv.mkDerivation rec { | |||||
| outputs = [ "out" "dev"]; | ||||||
| outputBin = "dev"; | ||||||
|
|
||||||
| nativeBuildInputs = [ autoreconfHook pkgconfig which ]; | ||||||
| nativeBuildInputs = [ meson pkgconfig which ninja ]; | ||||||
| buildInputs = [ gettext libffi libiconv libtasn1 ]; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need gettext at run time, or should this go to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Conveniently there's info about gettext at https://p11-glue.github.io/p11-glue/p11-kit/manual/devel-building.html#devel-building-unix
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, then it should actually be |
||||||
|
|
||||||
| autoreconfPhase = '' | ||||||
| NOCONFIGURE=1 ./autogen.sh | ||||||
| ''; | ||||||
|
|
||||||
| configureFlags = [ | ||||||
| "--sysconfdir=/etc" | ||||||
| "--localstatedir=/var" | ||||||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there does not appear to be a meson option for this one |
||||||
| "--without-trust-paths" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this option no longer necessary with Meson? |
||||||
| mesonFlags = [ | ||||||
| "-Dsystem_config=${placeholder "out"}/etc" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No matter what, we will need to patch https://github.com/p11-glue/p11-kit/blob/17b2edb1354c5d5080172af45ce55408c5e51d59/p11-kit/meson.build#L27-L28 to |
||||||
| "-Dsystemd=disabled" | ||||||
| ]; # TODO: store trust anchors in a directory common to Nix and NixOS | ||||||
|
|
||||||
| enableParallelBuilding = true; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed. Meson builds in parallel by default.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So can |
||||||
|
|
||||||
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 which used by the build? Meson’s
find_programshould not need it.