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
[RFC/RDY] neomutt: 2017-12-08 -> 2017-12-15 #32546
Conversation
@toogley The build still succeeds without the
The patch that I provided to neomutt to fix that specific issue was merged but only affects the old autoconfigure script. |
@andir which patch? NIX_LDFLAGS = "-lidn" ? i haven't found any neomutt related commits in https://github.com/NixOS/nixpkgs/commits?author=andir |
The PR was with neomutt: neomutt/neomutt#771 |
@andir I cannot reproduce your error. I did
|
Did you execute neomutt? |
@andir ah, i see. I can now reproduce your problem. |
I have added now nullmailer as optional dependency and tested it. autosetup finds the sendmail binary, when i set Additionally, i have now added lua as an optional dependency and tested if it occurs in I think this PR can be merged now. |
@@ -1,6 +1,10 @@ | |||
{ stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript, | |||
ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, | |||
lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42, mime-types }: | |||
lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42, mime-types | |||
, withSendmail ? false, nullmailer |
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.
Instead of doing ,withFeature ? false, feature
you could just do: feature ? null
.
Since null
values are ignored within buildInputs
you could also simplify the expression there.
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.
You mean like bc889b9 ?, i.e. its not possible to simplify the lua feature?
* add nullmailer as optional dependency * add lua as optional dependency
mime-types | ||
]; | ||
nullmailer # default to null, so its optional. |
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.
The default is with nullmailer. nullmailer ? null
only tells the users reading this file that it is supported to override nullmailer
with null
.
I don't see why this dependency should be disabled by default, only the comment is confusing.
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.
nullmailer ? null only tells the users reading this file that it is supported to override nullmailer with null.
Does that mean you think +, withSendmail ? true, nullmailer
would be more readable?
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.
I'd use
+, sendmail ? nullmailer, nullmailer ? null
+ buildInputs = [ … sendmail … ]
Then the users can disable it by overriding with sendmail = null
, and choose another sendmail with e.g. sendmail = msmtp
.
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.
BTW sendmail
is provided by busybox, exim, msmtp, nullmailer, postfix, and ssmtp. Have you tested sending mail from neomutt
with nullmailer
?
closing as outdated, we're on a newer version already. |
Motivation for this change
The new version contains two important bugfixes and drops the autotools build system.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)