1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00

singular: use gcc5

Progress on: #28643
Fixes: #29682
This commit is contained in:
Michael Raskin 2017-09-23 10:14:20 +02:00
parent 18ebc8dba9
commit f7d7c7bedf
2 changed files with 6 additions and 3 deletions

View file

@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf bison pkgconfig ];
preConfigure = ''
find . -exec sed -e 's@/bin/rm@${coreutils}&@g' -i '{}' ';'
find . -exec sed -e 's@/bin/uname@${coreutils}&@g' -i '{}' ';'
find . -type f -exec sed -e 's@/bin/rm@${coreutils}&@g' -i '{}' ';'
find . -type f -exec sed -e 's@/bin/uname@${coreutils}&@g' -i '{}' ';'
${stdenv.lib.optionalString asLibsingular ''NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DLIBSINGULAR"''}
'';

View file

@ -18565,9 +18565,12 @@ with pkgs;
inherit (gnome3) gtksourceview;
};
singular = callPackage ../applications/science/math/singular {};
singular = callPackage ../applications/science/math/singular {
stdenv = overrideCC stdenv gcc5;
};
libsingular = callPackage ../applications/science/math/singular {
asLibsingular = true;
stdenv = overrideCC stdenv gcc5;
};
scilab = callPackage ../applications/science/math/scilab {