lol

giac-with-xcas: fix build

remove libGLU_combined package and replace with libGL and libGLU

authored by

Jonathan Ringer and committed by
Jon
9dc8e77e 86b6ee98

+3 -4
+3 -4
pkgs/applications/science/math/giac/default.nix
··· 1 - { stdenv, fetchurl, fetchpatch, texlive, bison, flex, liblapack 1 + { stdenv, lib, fetchurl, fetchpatch, texlive, bison, flex, liblapack 2 2 , gmp, mpfr, pari, ntl, gsl, blas, mpfi, ecm, glpk, nauty 3 3 , readline, gettext, libpng, libao, gfortran, perl 4 4 , enableGUI ? false, libGL ? null, libGLU ? null, xorg ? null, fltk ? null ··· 7 7 assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null; 8 8 9 9 stdenv.mkDerivation rec { 10 - name = "${attr}-${version}"; 11 - attr = if enableGUI then "giac-with-xcas" else "giac"; 10 + pname = "giac${lib.optionalString enableGUI "-with-xcas"}"; 12 11 version = "1.5.0-21"; # TODO try to remove preCheck phase on upgrade 13 12 14 13 src = fetchurl { ··· 104 103 description = "A free computer algebra system (CAS)"; 105 104 homepage = "https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"; 106 105 license = licenses.gpl3Plus; 107 - platforms = platforms.unix; 106 + platforms = platforms.linux ++ (optionals (!enableGUI) platforms.darwin); 108 107 maintainers = [ maintainers.symphorien ]; 109 108 }; 110 109 }