Repository navigation
masterpdfeditor: init at 4.2.70 - #27790
Conversation
85faa03 to
5bcd537
Compare
FRidh
left a comment
There was a problem hiding this comment.
- See Spotify e.g. on how to specify the derivation is available only for one arch.
- do test build with
nix-build -A masterpdeditor.nix-shellsets some additional env vars so it is not entirely the same. - update the commit title according to the guidelines
There was a problem hiding this comment.
sha1 is no longer considered secure. Use sha256 or above.
There was a problem hiding this comment.
I think you're supposed to use libsForQt5.callPackage
There was a problem hiding this comment.
Ok that fills in the qtbase and qtsvg dependencies, but something is still broken with xcb. It didn't happen with nix-shell.
There was a problem hiding this comment.
get rid of the set if you only support one arch
There was a problem hiding this comment.
Decided to leave it out, since I can't test whether the 32 bit build works.
1f029ae to
c5aa656
Compare
|
I'm getting errors like this now: This didn't happen inside nix-shell. |
|
Ok looks like I might need |
|
@FRidh So I did build it with |
|
According to those issues, this may not be an issue with the nix expression I wrote, but something to do with the way nixos/nixpkgs organises its qt plugins. And I'm not sure how to invocate masterpdfeditor4 with the correct qt plugins. It appears there was a fix in master to solve this somehow, but I've got a filled |
|
@CMCDragonkai Qt applications cannot be run from the store anymore, but need to be installed to a profile or ran from a |
|
So this expression worked for you?
I don't understand what you mean by not being able to run qt applications
from the nix store.
…On 2 Aug 2017 2:31 AM, "Frederik Rietdijk" ***@***.***> wrote:
@CMCDragonkai <https://github.com/cmcdragonkai> Qt applications cannot be
run from the store anymore, but need to be installed to a profile or ran
from a nix-shell. Testing it from a profile (e.g. nix-env -iA
masterpdfeditor) is the right approach. I quickly installed and ran it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27790 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAnHHR0QT689U9WCFtYoYIryKWGPcyQgks5sT1LYgaJpZM4On-Ey>
.
|
|
I meant the following doesn't work: whereas should. Note that running it from the store did work for me, but I suppose that's because I have a Plasma desktop with the same version of Qt. |
|
The underlying issue is, if I am correct, that Qt now uses |
|
I had the exact opposite experience to yours. My nix-build works for
masterpdfeditor4, but my nix-env doesn't properly install
masterpdfeditor, possibly due to the links I posted above something to
do with impurity in QT applications currently.
…On 08/02/2017 02:41 AM, Frederik Rietdijk wrote:
I meant the following doesn't work:
|$(nix-build -A masterpdfeditor)/bin/masterpdfeditor4 |
whereas
|$ nix-env -iA masterpdfeditor -f . && masterpdfeditor4 |
should.
Note that running it from the store did work for me, but I suppose
that's because I have a Plasma desktop with the same version of Qt.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27790 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnHHZ-mpNNPsLgMgIQcyV4aQUmmn89kks5sT1UcgaJpZM4On-Ey>.
|
|
Can anybody who has more experience with QT apps review this? |
|
@CMCDragonkai, @FRidh: I rebased this on latest master and tried executing, both using Did anything change by now in how QT applications should be wrapped? |
|
It did work inside a nix shell before. But I'm not sure about how Qt apps are meant to work. EDIT: Qt apps are very side-effectful relying on some sort of plugin integration. So whether it works in nix-build, nix-env or nix-shell depends alot on the environment... |
also add flokli as maintainer
|
As described by @ttuegel in #30977, Qt applications currently don't seem to work when being run from After having some dependent qt applications in my user environment, I was able to execute masterpdfeditor by I bumped to the latest version @CMCDragonkai could you give my masterpdfeditor branch a try and if good push into this PR? |
|
Your changes look good. The masterpdfeditor here does work on my machine, just not inside nix-shell, and only after I ran nix-build. So it looks like we kind of know what the problem is. Is there a way that you can push your changes into this PR? Or how would I pull in your changes into this PR into a combined PR? |
|
I think I can pull in your branch and merge it into this PR. |
|
@flokli Oh I can't do that, because you didn't fork from this PR, so I cannot cleanly merge your changes into this PR's branch. Instead your branch contains everything, so you should submit a PR and this PR can be closed in favour of yours. |
|
@CMCDragonkai If you agree with his changes, |
|
@flokli I just tried your branch installing masterpdfeditor from there, the build worked, but running the program results in: Looks like it requires some update to Qt. My current system nixpkgs commit is 8fefa85 while your branch is later. There's still side-effects in this Qt package that won't work unless some other environment stuff is set. This problem exists in other Qt packages as well: #30551 So I don't think the above problem should prevent this package from being accepted. This is a global problem for all qt packages in NixOS. |
c5aa656 to
e4913c2
Compare
|
It is great for PDF forms indeed. However, |
|
@orivej I already tried if it could be made to load assets from $out/share/$pname, but seems it has to come from next to the binary. I moved everything and added the symlink as suggested. |
orivej
left a comment
There was a problem hiding this comment.
That's perfect, thank you!
|
Hey is this going to be pulled in? |
Motivation for this change
Added masterpdfeditor.
This is the best PDF editor available on Linux. I've tried them all but only this one allows me to add text into unfillable forms.
Things done
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)I had some code here for 32 bit, but since I don't have a 32 bit machine I can't test the build of it. What's the right way to specify that this package is only for 64 bit?
I tested this on nix-shell, but not part of main nixpkgs.