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
mailspring: init at 1.7.8 #85492
mailspring: init at 1.7.8 #85492
Conversation
Closes #69027 #69384 |
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.
Thanks for submitting your first PR! This looks like a well-researched PR. I'm honestly not terribly familiar with the Linux binary side of nixpkgs, but I know the general preference is to build packages from scratch in Nixpkgs if possible.
There's some formatting/best practices included below.
Also, when trying to review this, I ran into a merge conflict with the maintainers list (probably b/c you submitted a different PR & now there's a conflict). So please remove that commit from this with git rebase -i master
. Reviewers can't easily test building this until that's fixed.
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
@drewrisinger thanks for your review.
I removed myself from the maintainer list (it's my only PR so there should not be any conflict in that file). Before merging, we should probably revert that unless someone else wants to maintain the package. I also updated mailspring to the latest version (1.7.6) and applied your suggestions. |
Oh, sorry. If this is actually your first package, then a commit adding yourself as maintainer IS appropriate. Just make sure that it merges with Builds locally with
|
Note: commits will also need squashed down to just the maintainer commit & |
Ok, the PR should have no conflicts with master and I squashed all commits down. |
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.
Few small notes still to be resolved by someone who knows more about packaging .deb
better than I.
Builds locally, not tested.
nixpkgs-review pr 85492
https://github.com/NixOS/nixpkgs/pull/85492
1 package built:
mailspring
Closes #69027 |
Closes #69384 |
I tried upgrading this to the latest Mailspring release and it seems to work fine so far.
|
pkgs/applications/networking/mailreaders/mailspring/default.nix
Outdated
Show resolved
Hide resolved
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.
- Diff LGTM
- Builds Locally
- After build, GUI launches
- Still not sure about best method when using dpkg, but seems to build fine.
This pull request has been mentioned on NixOS Discourse. There might be relevant details 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.
I can get it work.
LGTM
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This pull request has been mentioned on NixOS Discourse. There might be relevant details 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.
Thanks for submitting this and sorry for having to wait so long for getting this merged. It seems that mailspring relies on wget for crash dumps:
$ wrapit --bind /tmp/.X11-unix/X0 /tmp/.X11-unix/X0 --dir /home/daniel --setenv DISPLAY :0 `realpath results/mailspring/bin/mailspring`
Fontconfig error: Cannot load default config file
Running database migrations
App load time: 145ms
Running Setup
{"error":null}
Cannot upload crash dump: cannot exec /usr/bin/wget
Failed to get crash dump id.
Report Id:
Cannot upload crash dump: cannot exec /usr/bin/wget
Failed to get crash dump id.
Report Id:
Could be something to fix for a future PR.
Motivation for this change
Packaged the mail client Mailspring at version 1.7.5
Currently two pull requests for mailspring at version 1.6.3 exist: #69384 and #69027
Syncing mails does not work in #69384 and #69027 uses buildFHSUserEnv although only one file needs patching.
This PR is based on the work done by rummik in #69384 and solves both problems for the latest version of mailspring.
The application needs
gnome-keyring
for storing passwords.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @