Created
September 26, 2015 14:23
-
-
Save martinklepsch/f1471f6295a39a48dc49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
racket-minimal = stdenv.mkDerivation rec { | |
name = "racket-minimal-${version}"; | |
version = "6.2.1"; | |
src = fetchurl { | |
url = "http://mirror.racket-lang.org/installers/${version}/${name}-src-builtpkgs.tgz"; | |
# "http://mirror.racket-lang.org/installers/${version}/${name}-src.tgz"; | |
sha256 = "0dkbr2cqkalh1v46p37m4xi7mcgwkzc4v90gclwsjrmb4dgypv27"; | |
}; | |
libPath = stdenv.lib.makeLibraryPath [ | |
# cairo | |
# fontconfig | |
# glib | |
# gmp | |
# gtk | |
# libjpeg | |
# libpng | |
# mpfr | |
# openssl | |
# pango | |
# poppler | |
# readline | |
# sqlite | |
]; | |
# FONTCONFIG_FILE = fontsConf; | |
LD_LIBRARY_PATH = libPath; | |
NIX_LDFLAGS = "-lgcc_s"; | |
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ]; | |
preConfigure = '' | |
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname | |
mkdir src/build | |
cd src/build | |
''; | |
configureFlags = [ "--disable-debug" "--disable-dependency-tracking" "--enable-macprefix" ]; | |
configureScript = "../configure"; | |
enableParallelBuilding = false; | |
# postInstall = '' | |
# for p in $(ls $out/bin/) ; do | |
# wrapProgram $out/bin/$p --set LD_LIBRARY_PATH "${LD_LIBRARY_PATH}"; | |
# done | |
# ''; | |
meta = with stdenv.lib; { | |
description = "A programmable programming language"; | |
longDescription = '' | |
Racket is a full-spectrum programming language. It goes beyond | |
Lisp and Scheme with dialects that support objects, types, | |
laziness, and more. Racket enables programmers to link | |
components written in different dialects, and it empowers | |
programmers to create new, project-specific dialects. Racket's | |
libraries support applications from web servers and databases to | |
GUIs and charts. | |
''; | |
homepage = http://racket-lang.org/; | |
license = licenses.lgpl3; | |
maintainers = with maintainers; [ kkallio henrytill ]; | |
platforms = platforms.unix; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
config.log