Merge remote-tracking branch 'upstream/master' into racket-full-darwin

This commit is contained in:
Claes Wallin (韋嘉誠)
2018-11-16 15:41:48 +08:00
12435 changed files with 535565 additions and 310427 deletions

View File

@@ -1,12 +1,15 @@
{ stdenv, fetchurl, makeFontsConf, makeWrapper
, cairo, coreutils, fontconfig, freefont_ttf
, glib, gmp, gtk2, libedit, libffi
, glib, gmp
, gtk3
, libedit, libffi
, libiconv
, libjpeg
, libpng, libtool, mpfr, openssl, pango, poppler
, readline, sqlite
, disableDocs ? false
, CoreFoundation
, gsettings-desktop-schemas
}:
let
@@ -20,7 +23,8 @@ let
fontconfig
glib
gmp
gtk2
gtk3
gsettings-desktop-schemas
libedit
libjpeg
libpng
@@ -36,7 +40,7 @@ in
stdenv.mkDerivation rec {
name = "racket-${version}";
version = "6.12";
version = "7.1"; # always change at once with ./minimal.nix
src = (stdenv.lib.makeOverridable ({ name, sha256 }:
fetchurl rec {
@@ -45,7 +49,7 @@ stdenv.mkDerivation rec {
}
)) {
inherit name;
sha256 = "0cwcypzjfl9py1s695mhqkiapff7c1w29llsmdj7qgn58wl0apk5";
sha256 = "180z0z6srzyipi9wfnbh61nbvzxr5d1cls7wxapv6fw92y52jwz9";
};
FONTCONFIG_FILE = fontsConf;
@@ -55,12 +59,14 @@ stdenv.mkDerivation rec {
(stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation")
];
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ]
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite gsettings-desktop-schemas gtk3 ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreFoundation ];
preConfigure = ''
unset AR
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname
for f in src/configure src/racket/src/string.c; do
substituteInPlace "$f" --replace /usr/bin/uname ${coreutils}/bin/uname
done
mkdir src/build
cd src/build
'';
@@ -76,7 +82,9 @@ stdenv.mkDerivation rec {
postInstall = ''
for p in $(ls $out/bin/) ; do
wrapProgram $out/bin/$p --set LD_LIBRARY_PATH "${LD_LIBRARY_PATH}";
wrapProgram $out/bin/$p \
--prefix LD_LIBRARY_PATH ":" "${LD_LIBRARY_PATH}" \
--prefix XDG_DATA_DIRS ":" "$GSETTINGS_SCHEMAS_PATH";
done
'';

View File

@@ -5,7 +5,7 @@ racket.overrideAttrs (oldAttrs: rec {
name = "racket-minimal-${oldAttrs.version}";
src = oldAttrs.src.override {
inherit name;
sha256 = "0c565jy2y3gjl5lncd5adjsrj8c24p4i062kphv26ni5q1nn5ip5";
sha256 = "11vcqxdgyarv89ijd46wzrdl2wk7xjirg7ynlz7r0smdcqrcl711";
};
meta = oldAttrs.meta // {