-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
notmuch: fix cross #225111
notmuch: fix cross #225111
Conversation
Adapted from Void Linux commit 81c3c1884be1959337b55cd88d4748d17ac6c3de.
Rebased. |
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.
Lastly, https://github.com/NixOS/nixpkgs/pull/225111#discussion_r1160513273
is not a good commit message :)
substituteInPlace configure \ | ||
--replace 'pkg-config' "${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config" | ||
substituteInPlace configure \ | ||
--replace './_check_x509_validity' 'true' | ||
substituteInPlace configure \ | ||
--replace './_check_session_keys' 'true' |
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.
Nit: You can do it all in a single substituteInPlace
command.
}) | ||
]; | ||
|
||
XAPIAN_CONFIG = "${xapian}/bin/xapian-config"; |
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.
This doesn't seem like it would behave well in a cross compilation...
@@ -40,6 +47,19 @@ stdenv.mkDerivation rec { | |||
] ++ lib.optional withRuby ruby | |||
++ lib.optional withSfsexp sfsexp; | |||
|
|||
patches = [ | |||
(fetchpatch { |
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.
Too bad upstream uses mailing lists for tracking development... I know its a lot to ask, but are you aware of any attempts to tell them about these issues? It'd be nice to add some comment just in case.
@@ -28,6 +33,8 @@ stdenv.mkDerivation rec { | |||
pythonPackages.sphinx # (optional) documentation -> doc/INSTALL | |||
texinfo # (optional) documentation -> doc/INSTALL | |||
pythonPackages.cffi | |||
gnupg |
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.
Are you sure the gnupg
and perl
in buildInputs
are still needed?
@@ -124,6 +152,8 @@ stdenv.mkDerivation rec { | |||
+ lib.optionalString withSfsexp '' | |||
cp notmuch-git $out/bin/notmuch-git | |||
wrapProgram $out/bin/notmuch-git --prefix PATH : $out/bin:${lib.getBin git}/bin | |||
'' + '' | |||
mkdir -p $info |
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.
Why is this needed all of a sudden?
Adapted from Void Linux commit 81c3c1884be1959337b55cd88d4748d17ac6c3de and f95b944252e3a1fc900a18c8eeed59e6de9b6e9a.
Note:
withEmacs
will be disabled automatically due to