about summary refs log tree commit diff
path: root/pkgs/applications/science/math
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-11-24 11:12:55 -0800
committerJon <jonringer@users.noreply.github.com>2019-12-07 16:58:50 -0800
commit9dc8e77e4e54416551eb3d71df121d14b5ca708a (patch)
treeeb25838feb5146ec447a1ca6f78c796d6d05abe3 /pkgs/applications/science/math
parent86b6ee9825ea5b5ce08d8696d6c4214c7df3a8e1 (diff)
downloadnixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar.gz
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar.bz2
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar.lz
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar.xz
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.tar.zst
nixlib-9dc8e77e4e54416551eb3d71df121d14b5ca708a.zip
giac-with-xcas: fix build
remove libGLU_combined package and replace with libGL and libGLU
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r--pkgs/applications/science/math/giac/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/science/math/giac/default.nix b/pkgs/applications/science/math/giac/default.nix
index 862761fe6fb5..b3777528ecda 100644
--- a/pkgs/applications/science/math/giac/default.nix
+++ b/pkgs/applications/science/math/giac/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, fetchpatch, texlive, bison, flex, liblapack
+{ stdenv, lib, fetchurl, fetchpatch, texlive, bison, flex, liblapack
 , gmp, mpfr, pari, ntl, gsl, blas, mpfi, ecm, glpk, nauty
 , readline, gettext, libpng, libao, gfortran, perl
 , enableGUI ? false, libGL ? null, libGLU ? null, xorg ? null, fltk ? null
@@ -7,8 +7,7 @@
 assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null;
 
 stdenv.mkDerivation rec {
-  name = "${attr}-${version}";
-  attr = if enableGUI then "giac-with-xcas" else "giac";
+  pname = "giac${lib.optionalString enableGUI "-with-xcas"}";
   version = "1.5.0-21"; # TODO try to remove preCheck phase on upgrade
 
   src = fetchurl {
@@ -104,7 +103,7 @@ stdenv.mkDerivation rec {
     description = "A free computer algebra system (CAS)";
     homepage = "https://www-fourier.ujf-grenoble.fr/~parisse/giac.html";
     license = licenses.gpl3Plus;
-    platforms = platforms.unix;
+    platforms = platforms.linux ++ (optionals (!enableGUI) platforms.darwin);
     maintainers = [ maintainers.symphorien ];
   };
 }