diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-12 21:37:39 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-12 21:37:39 +0200 |
commit | b797c8531e732bde24190dd9b3e18214c2e170fb (patch) | |
tree | 5073af7604448616f0f83fbcb378cd15d4378bb4 /pkgs/applications/science | |
parent | 9f7053ffc1bd0baff9a792fd47b568dd3f4582a5 (diff) |
pynac: fix build
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/math/pynac/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/science/math/pynac/default.nix b/pkgs/applications/science/math/pynac/default.nix index 88515b92beaf6..1389a5a77ece9 100644 --- a/pkgs/applications/science/math/pynac/default.nix +++ b/pkgs/applications/science/math/pynac/default.nix @@ -10,15 +10,15 @@ , ncurses }: -stdenv.mkDerivation rec { - version = "0.7.29"; +stdenv.mkDerivation (finalAttrs: { pname = "pynac"; + version = "0.7.29"; src = fetchFromGitHub { owner = "pynac"; repo = "pynac"; - rev = "pynac-${version}"; - sha256 = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A="; + rev = "pynac-${finalAttrs.version}"; + hash = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A="; }; patches = [ @@ -27,10 +27,16 @@ stdenv.mkDerivation rec { (fetchpatch { name = "realpartloop.patch"; url = "https://git.sagemath.org/sage.git/plain/build/pkgs/pynac/patches/realpartloop.patch?h=9.4.beta5"; - sha256 = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4="; + hash = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4="; }) ]; + # Python 3.11 moved this header file, but is now is imported by default + postPatch = '' + substituteInPlace ginac/numeric.cpp \ + --replace-fail "#include <longintrepr.h>" "" + ''; + buildInputs = [ flint gmp @@ -57,4 +63,4 @@ stdenv.mkDerivation rec { maintainers = teams.sage.members; platforms = platforms.unix; }; -} +}) |