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
crawl: add .desktop file and use high-res app icon #59915
Conversation
776ab3d
to
a701c6f
Compare
I've upstreamed the icon change but they only release every six months. Once the new version is released I'll remove the patch from nixpkgs, but in the meantime it would be nice to keep it. |
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.
Can you add the commit you upstreamed as a patch like?
patches = [
(fetchpatch {
url = "https://github.com/crawl/crawl/commit/2aa1166087e44e6585b26cedf1fe81b3f3ba547f.patch"
sha256 = "0000000000000000000000000000000000000000000000000000";
})
];
And remove it from the tree?
a701c6f
to
c9a9a57
Compare
Good idea, it didn't even occur to me. Updated. |
Hash mismatch
Note that |
I did use The build succeeds for me with either I guess I should use |
The crawl source includes .desktop files but currently they are not installed. This change installs them (with the executable path tweaked for NixOS compatibility). Also included in this change is an upstream patch to use the included high-res app icon instead of the default 32x32 icon. The default icon is very low res and looks out of place beside other app icons.
c9a9a57
to
82d31fd
Compare
Finally got a chance to look at this. The tl;dr is that I updated the hash to More context:
Compounding my testing was the fact that |
For fixed-output derivations if the hash already matches a path in the store nix will skip the download and just use the existing path. Since you used So changing the hash so that it no longer matches forces a rebuild, and then you get the mismatch because it wasn't correct. I tend to do Trust on first use where you use a placeholder hash that for sure will be wrong
and then when the build fails with a hash mismatch you then substitute it with that hash I've done this locally and the hash used is correct
more info at https://nixos.org/nixos/nix-pills/nix-store-paths.html |
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.
Desktop item and icons look good.
Thank you @lightbulbjim for fixing this. If you have more questions about the hash issue, feel free to ask me. |
Thanks for merging and especially for the help. I appreciate it! |
Motivation for this change
The crawl source includes .desktop files but currently they are not
installed. This change installs them (with the executable path tweaked
for NixOS compatibility).
Also included in this change is a patch to use the included high-res app
icon instead of the default 32x32 icon. The default icon is very low res
and looks out of place beside other app icons.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)