-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Static builds are broken #626
Comments
@srid Is this issue related to the 404 error on https://github.com/srid/neuron/releases/tag/nightly ? |
@oponkork Nope, not related. This is because static build of GHC is broken on nixpkgs, and the fix for this is here: NixOS/nixpkgs#129289 |
Oh, I thought you have taken down the nightly temporarily because of it. |
Apparently fixed in NixOS/nixpkgs@da1cf8c ... once that gets to the nix channel, we can re-try static builds. |
After the nixpkgs update, I get
EDIT: This appears to be NixOS/nixpkgs#131557 |
Also re-enable hslua tests (got fixed upstream early this year). One step ahead in #626
Now failing at
Not the same as haskellari/time-compat#23 but ... Using |
Also move all static build overrides to static.nix, out of project.nix.
Yes, no idea how to fix it. To reproduce run
|
Wontfix (unless someone volunteers to fix), but an alternative is uploaded here: https://github.com/srid/neuron/releases/tag/1.9.35.0 |
This doesn't work on my Arch Linux 🤔 It gives many permission errors. Does it work on your machine, or did others test it? |
It works for me in WSL (Ubuntu). Same for Emanote. What error do you see? You might have better luck reporting, and seeking help, in the Nix forum (as it was the experimental |
I tested again, and it seems that the only thing that doesn't work correctly is the PWD. It doesn't work without It seems that the PWD is |
I noticed this just now:
|
Yup, I had just added it after your comment above. I'm guessing the executable changes directory internally before launching app (neuron or emanote), thus necessitating absolute paths. I just also realized that a bare |
This wrapper script seems to work: #!/bin/bash
neuron_dir="$PWD"
args=()
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-d)
neuron_dir="$(realpath "$2")"
shift
shift
;;
*)
args+=("$1")
shift
;;
esac
done
/opt/neuron-zettelkasten-bin/neuron -d "$neuron_dir" "${args[@]}" |
Re-opening because I did a new build out of curiosity using new nixpkgs and it built this time. Anybody wanna give it a try? https://ipfs.infura.io/ipfs/QmcZ8amU7z16x2vV2CEuEGe836GMq3h5FWip9DLnzCHi6F?filename=neuron |
neuron: /nix/store/1120fbipilhpsqpnbqff50cibfr6qkq2-neuron-1.9.35.3/bin/neuron-search: executeFile: does not exist (No such file or directory) Other commands work fine. |
Yes, for |
To reproduce, run
nix-build static.nix
(will take hours to compile).Looks to be NixOS/nixpkgs#118731
Originally posted by @srid in #622 (reply in thread)
The text was updated successfully, but these errors were encountered: