-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gruntfile: clean collection after unzipping #759
gruntfile: clean collection after unzipping #759
Conversation
bb14870
to
92e4520
Compare
Co-authored-by: Alberto Merino <[email protected]> Co-authored-by: Enric Morales <[email protected]> Co-authored-by: Roland Coeurjoly <[email protected]> If we run the `clean:collection` task after unzipping, we allow downloading the file manually into the cache directory so that the unzip task doesn't try downloading it again.
92e4520
to
62b0a63
Compare
Great improvements for the packager , thanks! In other way i'll try to try it on OSX , but i have errors (i'm novice with nix), i do this steps:
but i receive the error error: cannot evaluate a function that has an argument without a value ('fetchurl') I'm asking you if there is a beginners guide or some documentation that you recomended. |
Thanks for wanting to try it!
The last step is not what you need to run. From the root of the nixpkgs repo, and after checking out the After a hopefully successful build, a For documentation i'd check out nix.dev, like https://nix.dev/tutorials/packaging-existing-software.html#your-first-package. Regarding this PR, it actually contains an error due to my misunderstanding of the clean:collection task. Although it says that it removes the previously downloaded collection, it removes both the downloaded collection and the unzipped collection, so the build will not be correct. May I ask to reopen this PR? I'd like to add a fix. Thanks! |
The Merge is reverted! |
And dont worry was my fault, i'm not remember well what "clean collections" do and i don't check in deep. |
Hi! i'm trying to build in osx, but several errors appears, one of them and i think the first to start (others, i think are promoted by this one) in nixpkgs osx is not supported by nwjs pkg:
i'll try to add support to this! |
Thank you so much for trying it! We'll definitely use your help I think 😄! |
Hello @kiike! i have managed to package in nix nwjs for osx!!! Tomorrow I'll try to pack icestudio! I'm learning a lot through the process with nwjs. I feel more comfortable with nix at every step :) |
Nice! I'm looking forward to hearing if the package works on macOS on aarch64!
|
Hi @kiike ! 'm forking nixpkgs and launch the PR for nwjs support. Then i'm trying to checkout in my fork to fern/icestudio but i don't find it, you move it? in wich branch is icestudio now? thanks!! |
Hey @cavearr! Nice! I'm excited you are taking these steps 👍! The branch is still active, but it lives in @jackleightcap's fork. So just add his remote. https://github.com/jleightcap/nixpkgs/ branch: fern/icestudio. |
Ou!! sorry!! i'm fork from your PR and i not show it sorry! i have a PR for nwjs to the nixpkgs yesterday , in the afternoon or tomorror i'll do it to your fork (nwjs and icestudio). Thanks again for your patience! |
During the packaging work for Nix, we noticed that the
wget
task would always try downloading the collections file, even though we downloaded it to the cache location. After some digging, it looks like cleaning the downloaded file before the download will just do that.If we run the
clean:collection
task after unzipping, we allow downloading the file manually into the cache directory so that the unzip task doesn't try downloading it again. That is especially beneficial on NixOS, as the dependencies should be cached before running the build.