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
42
FONTCONFIG_FILE = fontsConf;
43
LD_LIBRARY_PATH = libPath;
44
-
NIX_LDFLAGS = "-lgcc_s";
45
46
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ];
47
···
51
cd src/build
52
'';
53
54
-
configureFlags = [ "--enable-shared" "--enable-lt=${libtool}/bin/libtool" ]
55
-
++ stdenv.lib.optional disableDocs [ "--disable-docs" ];
0
0
56
57
configureScript = "../configure";
58
···
41
42
FONTCONFIG_FILE = fontsConf;
43
LD_LIBRARY_PATH = libPath;
44
+
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
45
46
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ];
47
···
51
cd src/build
52
'';
53
54
+
shared = if stdenv.isDarwin then "dylib" else "shared";
55
+
configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ]
56
+
++ stdenv.lib.optional disableDocs [ "--disable-docs" ]
57
+
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ];
58
59
configureScript = "../configure";
60