Conversation
|
Currently stuck getting this error: |
5148e3e to
e58793d
Compare
|
I found a way to get around it using {
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=sign-compare"
];
} |
|
But now I am stumped by this: |
e58793d to
a1e678c
Compare
|
Build successful 😄 |
Aleksanaa
left a comment
There was a problem hiding this comment.
The attribute name and pname should be qtscrcpy
a1e678c to
f0267fb
Compare
|
There is an issue preventing the build from happening, it affects my system and github CI. Apparently the submodule |
See #195117. The best option here would be manually copying that repo to store, since we don't have a lot of submodules. I'll try to fix edit: #195117 (comment) would be fine. |
Cool, the solution in the provided issue works perfectly. My question is just if this would be a temporary fix to keep until the issue has been resolved properly |
f0267fb to
e07edb3
Compare
|
There's vendor blob hidden in https://github.com/barry-ran/QtScrcpyCore/tree/5f0359053fb67f2226fcc87919aee0de17d2079b/src/third_party/ffmpeg/lib, which makes it unable to build on other architectures (and we should avoid unneeded blobs), see ofBorg https://logs.ofborg.org/?key=nixos/nixpkgs.340257&attempt_id=fe9242e4-8d56-41ff-8b7f-b817305c2b7f. There should be some options lying somewhere in cmake files. Do you think you can handle it? I can help you if you can't. |
e07edb3 to
7f8d69c
Compare
|
I'm working on it. (Anyway I feel that this behavior is actually a bit malicious. Maybe it is really doing some bad things secretly) |
|
Oh I definitely did not realize that, I don't really get what it may be doing, I need to do more research into that, package compilation as a whole. But I would love to understand what it's doing, if you could explain. |
tldr. it's not only vendoring ffmpeg blobs, but also scrcpy-server and adb in git submodules. This is very suspicious, because adb is a privileged operation for android, and scrcpy-server will be installed on the android system. Some users may not notice these pre-built binaries hidden in this open source project. |
|
Should we close the PR? |
|
Not necessarily, we can also try to replace the blob |
|
I know this question may not be helpful, but how would you go about replacing the blob? I assume you would somehow patch the source or maybe fork the repo and manually replace them. |
7f8d69c to
487974b
Compare
|
Resolved |
|
@Aleksanaa Thanks a whole lot for that, build is successful 😄 |
|
|
Still have to fix it a bit on macOS |
487974b to
1112eb8
Compare
|
Does this package only support FFmpeg 4? We are trying to get rid of it and this is the only user other than ROCm and the binary packages for Spotify and REAPER. |
|
The upstream vendored this version, so I replaced it with the same package. I can try to see if it still compiles after replacing it with a higher version |
Description of changes
Adds qt-scrcpy, a qt frontend for scrcpy.
Homepage : https://github.com/barry-ran/QtScrcpy
Build unsuccessful at the moment, help would be great 😄
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.