eukleides: use $CC instead of hardcoded gcc
This commit is contained in:
parent
7a1fbc38a4
commit
4ef47f32d7
2 changed files with 15 additions and 1 deletions
|
@ -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 ];
|
||||
};
|
||||
})
|
||||
|
|
11
pkgs/applications/science/math/eukleides/use-CC.patch
Normal file
11
pkgs/applications/science/math/eukleides/use-CC.patch
Normal file
|
@ -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)\"
|
Loading…
Reference in a new issue