tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
eukleides: use $CC instead of hardcoded gcc
Vincenzo Mantova
4 years ago
4ef47f32
7a1fbc38
+15
-1
2 changed files
expand all
collapse all
unified
split
pkgs
applications
science
math
eukleides
default.nix
use-CC.patch
+4
-1
pkgs/applications/science/math/eukleides/default.nix
···
9
9
sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q";
10
10
};
11
11
12
12
+
# use $CC instead of hardcoded gcc
13
13
+
patches = [ ./use-CC.patch ];
14
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
62
-
platforms = lib.platforms.linux;
65
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
1
+
--- a/build/Makefile
2
2
+
+++ b/build/Makefile
3
3
+
@@ -11,7 +11,7 @@ LEX = flex
4
4
+
LFLAGS = -8
5
5
+
YACC = bison
6
6
+
YFLAGS = -d
7
7
+
-CC = gcc
8
8
+
+CC ?= gcc
9
9
+
IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR)
10
10
+
ifneq ($(strip $(LOCALES)),)
11
11
+
MOFLAGS = -DMO_DIR=\"$(MO_DIR)\"