-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
libsecp256k1.dll on a non-Windows system #47
Comments
I'm facing the same issue. |
I ran into this issue independently while trying to package bitcash which depends on coincurve.
|
Can someone please give me an easy way to reproduce the error? |
@ofek It involves the package failing to find libraries when being built with Nix. To replicate, Install the Nix package manager, save the following file into { pkgs ? import <nixpkgs> { }}:
with pkgs;
python3Packages.callPackage
({ lib, buildPythonPackage, fetchPypi, asn1crypto, cffi, pkg-config, libtool, libffi, requests }:
buildPythonPackage rec {
pname = "coincurve";
version = "13.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1x8dpbq6bwswfyi1g4r421hnswp904l435rf7n6fj7y8q1yn51cr";
};
checkInputs = [ pkg-config ];
propagatedBuildInputs = [ asn1crypto cffi pkg-config libtool libffi requests ];
}) {} |
@ofek were you able to replicate the error? |
Yup, dunno why yet
|
@siraben can you try with 14.0.0? |
The expression changes a bit because of the introduction of autoconf and automake, but the error is the same { pkgs ? import <nixpkgs> { }}:
with pkgs;
python3Packages.callPackage
({ lib, buildPythonPackage, fetchPypi, asn1crypto, cffi, pkgconfig, autoconf, automake, libtool, libffi, requests }:
buildPythonPackage rec {
pname = "coincurve";
version = "14.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0j3z7p5l14zwdwij3vhpag134d8w1ixjqn3splvicbrcf45czd3v";
};
nativeBuildInputs = [ autoconf automake libtool ];
propagatedBuildInputs = [ asn1crypto pkgconfig cffi libffi requests ];
}) {} build log
|
Is there a way to build from a local path rather than from PyPI? |
Yes, I can change the source to the GitHub repository. |
Can you try removing |
That worked! Here's the final expression { pkgs ? import <nixpkgs> { }}:
with pkgs;
python3Packages.callPackage
({ lib, buildPythonPackage, fetchFromGitHub, pytest, asn1crypto, cffi, pkgconfig, autoconf, automake, libtool, libffi, requests }:
buildPythonPackage rec {
pname = "coincurve";
version = "14.0.0";
src = fetchFromGitHub {
owner = "ofek";
repo = "coincurve";
rev = "v${version}";
sha256 = "0z765x9vpb82nx9d0kvqknyl5ad4fldha3nqsx1cydghskdd100r";
};
postPatch = ''
rm coincurve/_windows_libsecp256k1.py
'';
checkInputs = [ pytest ];
nativeBuildInputs = [ autoconf automake libtool ];
propagatedBuildInputs = [ asn1crypto pkgconfig cffi libffi requests ];
}) {} |
There should be some conditional logic so that |
I don't know why it's happening only with nix |
The messages haven't gone all away:
|
Why is anything happening after |
Nix runs post-installation tasks and checks. |
Ah okay. Any recommendations for clearing up those nix warnings? |
I'll submit this to Nixpkgs and see if they can be resolved there. |
I'm getting
While trying to package coincurve for NixOS. Why would coincurve need a
libsecp256k1.dll
on a non-Windows system?This is my nix expression currently
The text was updated successfully, but these errors were encountered: