tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
racket: fix on darwin
Eric Seidel
10 years ago
2e62f785
ecc48af0
+5
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
interpreters
racket
default.nix
+5
-3
pkgs/development/interpreters/racket/default.nix
···
41
41
42
42
FONTCONFIG_FILE = fontsConf;
43
43
LD_LIBRARY_PATH = libPath;
44
44
-
NIX_LDFLAGS = "-lgcc_s";
44
44
+
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
45
45
46
46
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ];
47
47
···
51
51
cd src/build
52
52
'';
53
53
54
54
-
configureFlags = [ "--enable-shared" "--enable-lt=${libtool}/bin/libtool" ]
55
55
-
++ stdenv.lib.optional disableDocs [ "--disable-docs" ];
54
54
+
shared = if stdenv.isDarwin then "dylib" else "shared";
55
55
+
configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ]
56
56
+
++ stdenv.lib.optional disableDocs [ "--disable-docs" ]
57
57
+
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ];
56
58
57
59
configureScript = "../configure";
58
60