summary refs log tree commit diff
path: root/pkgs/applications/science/math/nasc/default.nix
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-09 21:59:35 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-11 12:08:20 +0100
commit55444ed07f9512cda681b6a0cc2cc7a6e5241c0e (patch)
tree47d84437eb250b7a1677ac94a549adc394b69024 /pkgs/applications/science/math/nasc/default.nix
parent0a1a3ad2d6ee5f83a0ec012d73f1084c65a558d7 (diff)
downloadnixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar.gz
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar.bz2
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar.lz
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar.xz
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.tar.zst
nixpkgs-55444ed07f9512cda681b6a0cc2cc7a6e5241c0e.zip
nasc: Fix compilation with gcc10
Diffstat (limited to 'pkgs/applications/science/math/nasc/default.nix')
-rw-r--r--pkgs/applications/science/math/nasc/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/nasc/default.nix b/pkgs/applications/science/math/nasc/default.nix
index 40406cc4588..37173f81978 100644
--- a/pkgs/applications/science/math/nasc/default.nix
+++ b/pkgs/applications/science/math/nasc/default.nix
@@ -1,6 +1,7 @@
 { lib, stdenv
 , fetchFromGitHub
 , pkgconfig
+, fetchpatch
 , python3
 , meson
 , ninja
@@ -31,6 +32,16 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  patches = [
+    # fix compilation with gcc10
+    (fetchpatch {
+      url = "https://github.com/parnold-x/libqalculate/commit/4fa8f2cceada128ef19f82407226b2c230b780d5.patch";
+      extraPrefix = "subprojects/libqalculate/";
+      stripLen = "1";
+      sha256 = "0kbff623zl0s6yx5avx068f2apwzxzvihjahja4qhlkqkhhzj9dm";
+    })
+  ];
+
   nativeBuildInputs = [
     glib # post_install.py
     gtk3 # post_install.py