Repository navigation
emissary: include necessary dynamic library guis, and 0.3.1 -> 0.4.0 - #510027
cappuccinocosmico wants to merge 6 commits into
Conversation
fb51dec to
8eac668
Compare
|
thanks a ton, i was ill so sorry for the delay ❤️ i'll check it out with nixpkgs-review in a sec |
|
N4CH723HR3R
left a comment
There was a problem hiding this comment.
Approved automatically following the successful run of nixpkgs-review.
|
it works but its currently native-ui only. i definitely want web-ui, native-ui and no UI working so that i can write a module |
|
@NixOS/nixpkgs-merge-bot merge |
|
@N4CH723HR3R wants to merge this PR. Requirements to merge this PR with
❌ Pull Request could not be merged (#305350) |
|
Just got the notifications for this. I did futz around a bit trying to get patchelf to work, should be able to test those out tomorrow morning. |
c027595 to
4aca675
Compare
|
Also while I was at it @N4CH723HR3R I went ahead and dug around with the webUI and found you need to explicitly enable a cargo feature, during the build step to get the web-ui to have any functionality at all, ie by adding something like: cargoHash = "sha256-cP1ddtppcSUhl2G2C/Pd4+C/xqlB27/D12t5lFUfChQ=";
cargoBuildFlags = [ "--features" "web-ui" ];
# ^^^^^Add this Line ^^^^^^^
nativeBuildInputs = [
pkg-config
]However, its impossible to build the package with both the "web-ui" and the "native" features enabled at the same time: There are a couple ways we could solve this on our end, maybe by building the 2 versions in a single derivation and shipping them both, or by including 2 deriviations. Although the cleanest solution might just be to submit a PR to emissary to allow switching between both at runtime, since I am sure its going to be annoying for packaging with other distros. |
|
|
||
| nativeBuildInputs = [ | ||
| pkg-config | ||
| ] | ||
| ++ lib.optionals stdenv.targetPlatform.isLinux [ | ||
| makeWrapper |
There was a problem hiding this comment.
Yeah great catch! Also checked that the UI was still working with the x11 and wayland build inputs removed, so I cleaned those up as well. I will try to catch these things better in future PRs :)
I'm pretty sure we have |
Yeah we totally do. According to this: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md, the best way to get this set up would be to add: {
cargoHash = "sha256-cP1ddtppcSUhl2G2C/Pd4+C/xqlB27/D12t5lFUfChQ=";
# New Block:
buildFeatures = [
"web-ui"
"native-ui"
];
}After the 0.4.1 release, which should include a fix to allow both features to be compiled at the same time: |
you can also do buildFeatures = [ "a" "b" "c" ]; |
N4CH723HR3R
left a comment
There was a problem hiding this comment.
lets fix #514132 while we're at it
|
hi, are you still working on this? @cappuccinocosmico |
Co-authored-by: N4CH723HR3R <[email protected]>
|
Oh yeah sorry, I was able to get a PR merged into emissary that lets us have a single binary with both webui and the native UI installed. However, that fix probably won't be availible until the next 0.4.1 or 0.5.0 release, So I was planning on waiting for that to drop then add the nixos modules after that. Although one alternative would just be to disable the Native UI, add the options now, and enable it after the patch drops |
i'd merge this without waiting (after you rebase & squash) since it fixes a bug critical to the function of the application. if you need help with squashing (explanation, etc.) feel free to ask :) |
|
@cappuccinocosmico Are you still interested in working on this PR? |
This goes ahead and bumps the version from 0.3.1 -> 0.4.0, and adds in some dynamic libraries that were preventing the UI from running on a regular nixos install.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.