ytmdesktop: build from source#397639
Conversation
e3c2880 to
84ee485
Compare
cjshearer
left a comment
There was a problem hiding this comment.
LGTM - glad to see building packages with yarn-berry got better over this past year.
|
Well, I don't know what it was like before, but as you may have seen, we aren't getting the same hash on linux and darwin... |
|
Could it be some platform dependent download? What if you specify It seems to be common for electron packages that use yarn. |
|
I'm 99% sure that won't help, that env var is only used when running electron's rebuild script We could maybe just keep the dual hash like this, and once it gets cached by hydra, we can easily compare the two. |
|
I don't think it's a big deal. If you want, you could see if I recall there being a lot of things I had to disable when I first tried getting this to build on nix from source. |
|
@yuyuyureka could you help with figuring out why the config hook is failing? |
|
The fix for that problem is now included in #401631 Can I push a version that works on your branch? |
|
I see, you added the dependency that would have been installed with I think the better solution would be to just patch that script out. |
|
A short explanation for the changes I pushed: The dependency So I added a patch to the package.json and yarn.lock to add only-allow as a dependency, which means npx will use the existing installed version at that point. Next, I ran into the issue that the only-allow script would not run, because it has a shebang with I did not consider skipping the build scripts entirely, because I don't know if that impacts the functionality of the app now or in the future. This might be an option for you if you know the application well and can confirm that it works without them. |
|
Thanks for figuring this out :) I think I will go with the YARN_ENABLE_SCRIPTS solution for now. |
|
|
Currently broken on Darwin, don't merge yet. |
|
Whhyyyyy..... I opened #303307 |
|
It builds fine on ofborg's darwin, because it doesn't have the sandbox enabled. |
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.