Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 41 lines 1.1 kB view raw
1{ stdenv, fetchurl, autoconf, ... }: 2 3stdenv.mkDerivation rec { 4 name = "gambit-bootstrap-${version}"; 5 version = "4.8.9"; 6 tarball_version = "v4_8_9"; 7 8 src = fetchurl { 9 url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.8/source/gambit-${tarball_version}-devel.tgz"; 10 sha256 = "b7f86c794711792ca556ce41f8bc7043dffc395c01bb6d8d119bc2f454f89fbf"; 11 }; 12 13 buildInputs = [ autoconf ]; 14 15 configurePhase = '' 16 ./configure --prefix=$out 17 ''; 18 19 buildPhase = '' 20 # Copy the (configured) sources now, not later, so we don't have to filter out 21 # all the intermediate build products. 22 mkdir -p $out ; cp -rp . $out/ 23 24 # build the gsc-boot* compiler 25 make bootstrap 26 ''; 27 28 installPhase = '' 29 cp -fa ./ $out/ 30 ''; 31 32 forceShare = [ "info" ]; 33 34 meta = { 35 description = "Optimizing Scheme to C compiler, bootstrap step"; 36 homepage = "http://gambitscheme.org"; 37 license = stdenv.lib.licenses.lgpl2; 38 platforms = stdenv.lib.platforms.unix; 39 maintainers = with stdenv.lib.maintainers; [ thoughtpolice raskin fare ]; 40 }; 41}