diff options
author | Vincenzo Mantova <xworld21@users.sf.net> | 2021-05-16 11:41:49 +0100 |
---|---|---|
committer | Vincenzo Mantova <xworld21@users.sf.net> | 2021-05-16 12:03:47 +0100 |
commit | 4ef47f32d7a16b62682460e4330ac2863ef05712 (patch) | |
tree | 0ac57a97c5f6ef7c748402fde6203e39403e79c4 /pkgs/applications/science | |
parent | 7a1fbc38a4b538450ac0d42aec8a3e513b4d723e (diff) |
eukleides: use $CC instead of hardcoded gcc
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/math/eukleides/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/science/math/eukleides/use-CC.patch | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix index fe498fdbd8a1b..b5a9fc3fa86db 100644 --- a/pkgs/applications/science/math/eukleides/default.nix +++ b/pkgs/applications/science/math/eukleides/default.nix @@ -9,6 +9,9 @@ lib.fix (eukleides: stdenv.mkDerivation rec { sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q"; }; + # use $CC instead of hardcoded gcc + patches = [ ./use-CC.patch ]; + nativeBuildInputs = [ bison flex texinfo makeWrapper ]; buildInputs = [ readline texLive ]; @@ -59,7 +62,7 @@ lib.fix (eukleides: stdenv.mkDerivation rec { circles and conics. ''; - platforms = lib.platforms.linux; + platforms = lib.platforms.unix; maintainers = [ lib.maintainers.peti ]; }; }) diff --git a/pkgs/applications/science/math/eukleides/use-CC.patch b/pkgs/applications/science/math/eukleides/use-CC.patch new file mode 100644 index 0000000000000..08bd71ec9dc59 --- /dev/null +++ b/pkgs/applications/science/math/eukleides/use-CC.patch @@ -0,0 +1,11 @@ +--- a/build/Makefile ++++ b/build/Makefile +@@ -11,7 +11,7 @@ LEX = flex + LFLAGS = -8 + YACC = bison + YFLAGS = -d +-CC = gcc ++CC ?= gcc + IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR) + ifneq ($(strip $(LOCALES)),) + MOFLAGS = -DMO_DIR=\"$(MO_DIR)\" |