about summary refs log tree commit diff
path: root/pkgs/applications/science/math/pari/default.nix
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-03-11 12:23:46 +0100
committerTimo Kaufmann <timokau@zoho.com>2020-03-12 12:24:35 +0100
commitc4ab54144334723abbf73b9200ec50b132d65fe3 (patch)
treee97bfdb0d5400199f324399cfc69008f6a1c11fa /pkgs/applications/science/math/pari/default.nix
parentc2524362ebb00f430c611433f047f283bc90309d (diff)
pari: backport bug fix
https://trac.sagemath.org/ticket/29313#comment:4
Diffstat (limited to 'pkgs/applications/science/math/pari/default.nix')
-rw-r--r--pkgs/applications/science/math/pari/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/pari/default.nix b/pkgs/applications/science/math/pari/default.nix
index 8886a0c8a6951..8f2f740f24830 100644
--- a/pkgs/applications/science/math/pari/default.nix
+++ b/pkgs/applications/science/math/pari/default.nix
@@ -1,5 +1,6 @@
 { stdenv
 , fetchurl
+, fetchpatch
 , gmp
 , readline
 , libX11
@@ -19,6 +20,15 @@ stdenv.mkDerivation rec {
     sha256 = "1jd65h2psrmba2dx7rkf5qidf9ka0cwbsg20pd18k45ggr30l467";
   };
 
+  patches = [
+    # https://trac.sagemath.org/ticket/29313#comment:1
+    (fetchpatch {
+      name = "backport-bug-fix.patch";
+      url = "https://git.archlinux.org/svntogit/community.git/plain/repos/community-x86_64/c7a1d35f.patch?h=packages/pari&id=27893d227290dc3821d68aa25877d9765c204dad";
+      sha256 = "0vm0fwyzj66cr32imip6srksd47s2s2sjl1rb26ph8gpfi3nalii";
+    })
+  ];
+
   buildInputs = [
     gmp
     readline