flameshot: 12.1.0-unstable-2025-05-04 -> 13.0.1#431307
flameshot: 12.1.0-unstable-2025-05-04 -> 13.0.1#431307SuperSandro2000 merged 4 commits intoNixOS:masterfrom
Conversation
|
This CI is failing because you are not defined into the maintainers list |
Thank you for noticing. I added it to the init package but forgot to take it out since the other PR with that commit is pending approval and merge (and figured making multiple "add maintainer" commits wouldn't be good either). |
|
Unfortunately, your best option is to put the maintainer commit into both pr, and rebase one of the two when the other gets merged first. This way it does not block this pr from being merged |
40bc119 to
f45359e
Compare
|
Wow I did not expected flameshot to have over 20k objects files, this is going to take a while to compile 😅 |
Yeah, that'll be fun. |
4c36e2e to
b9a643a
Compare
|
|
Honestly, most of KF6 stuff should build just fine on Darwin, but I don't want to flag it supported unless someone wants to step up and actually keep it that way. |
|
At this point I am doubtful about the Darwin support for the package altogether. Trying to build it by temporarily allowing unsupported systems revealed two more issues:
Thus having |
|
We may need to be a little smarter about auto-deps for this, but it should be possible to fix. |
That is promising. What would the process of resolving this problem roughly look like? Might as well give it a try first and learn from it (or maybe someone else more knowledgeable does). |
|
Basically make the Linux-specific dependencies in pkgs/kde actually conditional on Linux, and then possibly add more precise |
|
Maybe ask the upstream whether it's that simple to provide Qt6 on Darwin? |
|
There's really no reason it shouldn't be. Except that we haven't done it yet. |
Indeed, Qt6 is properly supported. I looked across Issues and PRs and have found that to be the case. So, I decided to look at the project's CMake lists again. That's when I realised two things.
TLDR after going through the steps above I have gotten the package to build and run as seen in the image below (in a moment of excitement I took the screenshot with Flameshot as seen below). I will tidy up the mess over/after the weekend and then commit those changes as well. That leaves me with one question for now: Is it worth opening an issue over at Flameshot given the relatively convoluted patching of CMakeLists it takes to package the app in Nixpkgs? Or is this common, something you simply have to deal with? P.S: I forgot the solution also involved adding another package that is not present in Nixpkgs, QHotKey |
06236fd to
747e7ca
Compare
|
Does not core dumps and kind of works for me (Gnome and ENV var Although, copying the screenshot with ctrl + c or the copy button does not work. Saving the image to disk works. |
|
Thank you everyone for pointing out what was overlooked. @SuperSandro2000 @MarcelCoding Regarding the GNOME/GTK issue, given the changes in build in v13 of Flameshot, wrapping the old way led to errors; particularly, on MacOS that caused duplication issues. Still, after a bit of digging, I have found that setting As for the copy-pasting problem, that is an upstream issue: https://bugs.kde.org/show_bug.cgi?id=508069 Finally, regarding the missing icons on Darwin. @gepbird |
|
Yeah, that's basically the change I mentioned in #431307 (comment). The only difference is that I've also added the qtwayland dependency. But interesting that it works for you without that on gnome/wayland. And thanks for the mention of https://bugs.kde.org/show_bug.cgi?id=508069. I will keep an eye on that! |
Thanks for looking into it, some info about my environment:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setCompositionMode: Painter not active
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawEllipse: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawEllipse: Painter not active
|
|
@gepbird I wasn't able to replicate your issues on X11 (at least, not on i3wm), whether via executing the binary or passing the PR package to the Home-manager module. However, that was prior to reverting some changes which I pushed just earlier, particularly regarding Qt wrapping. That resolved the issue with invisible icons on Darwin, I wonder if it also addresses your case. |
|
@dmkhitaryan Thank you, the icons work! |
|
Note: 13.0.1 is out since last week. |
Updated and checked it.
|
gepbird
left a comment
There was a problem hiding this comment.
Tested on x86_64-linux + X11, the functions I use work well, thanks for updating!
Code looks mostly good, just a few nits below.
|

Things done
Diff: flameshot-org/flameshot@v12.1.0...v13.0.1
Changelog: https://github.com/flameshot-org/flameshot/releases/tag/v13.0.1
Also packages its dependencies,
qt-color-widgets+qhotkey.passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.