eukleides: use $CC instead of hardcoded gcc

+15 -1
+4 -1
pkgs/applications/science/math/eukleides/default.nix
··· 9 9 sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q"; 10 10 }; 11 11 12 + # use $CC instead of hardcoded gcc 13 + patches = [ ./use-CC.patch ]; 14 + 12 15 nativeBuildInputs = [ bison flex texinfo makeWrapper ]; 13 16 14 17 buildInputs = [ readline texLive ]; ··· 59 62 circles and conics. 60 63 ''; 61 64 62 - platforms = lib.platforms.linux; 65 + platforms = lib.platforms.unix; 63 66 maintainers = [ lib.maintainers.peti ]; 64 67 }; 65 68 })
+11
pkgs/applications/science/math/eukleides/use-CC.patch
··· 1 + --- a/build/Makefile 2 + +++ b/build/Makefile 3 + @@ -11,7 +11,7 @@ LEX = flex 4 + LFLAGS = -8 5 + YACC = bison 6 + YFLAGS = -d 7 + -CC = gcc 8 + +CC ?= gcc 9 + IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR) 10 + ifneq ($(strip $(LOCALES)),) 11 + MOFLAGS = -DMO_DIR=\"$(MO_DIR)\"