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
zn_poly: init at 0.9 #38805
zn_poly: init at 0.9 #38805
Conversation
# Tuning (either autotuning or with hand-written paramters) is possible | ||
# but not implemented here. | ||
# It seems buggy anyways (see homepage). | ||
buildFlags = "all libzn_poly.so"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The libzn_poly.so doesn't seem very portable (for instance macOS uses .dylib, Windows uses .dll). Are you sure it's needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes its needed, its not included in all
.
I just checked and gentoo and the sage package both special-case darwin with libzn_poly.dylib
. Neither has a special case for windows, although sage supports windows as far as I know.
I'll add the darwin special case, but I cannot test it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay here is the portable way to do this I think: (see
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'" |
buildFlags = "all libzn_poly${stdenv.hostPlatform.extensions.sharedLibrary}";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I changed that.
It should be targetPlatform
though, right?
installPhase = '' | ||
mkdir -p "$out/include/zn_poly" | ||
mkdir -p "$out/lib" | ||
ls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed.
Also check to make sure "make install" doesn't work- it's okay to supply installPhase just usually a lot harder to maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, its necessary. For some reason the regular make install
does not install some header files and the so file. I've added a comment explaining this (and removed the stray ls
).
Is there a package that needs "zn_poly"? It's probably okay to have in Nixpkgs but note that it's unmaintained. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid libzn_poly.so target
Its a dependency of |
Since github apparently doesn't allow me to mark a change request as resolved: It should be resolved. The target is still there, but more portable. |
Motivation for this change
Package zn_poly.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)