git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #35052 from fare-patches/master

gambit, gerbil: Monthly update

commit635ae6d292fb1003b6740b08c884aa2349613235 authorMichael Raskin <7c6f434c@mail.ru> dateFri 16 Feb 2018, 20:21 (9 years ago) parentb614523544e548
2 files changed+30−15
pkgs/development/compilers/gambit/default.nix+6−5 pkgs/development/compilers/gerbil/default.nix+24−10
pkgs/development/compilers/gambit/default.nix+6−5
@@ -1,19 +1,20 @@
1−{ stdenv, fetchurl, fetchgit, git, openssl, autoconf, pkgs }:
1+{ stdenv, fetchurl, fetchgit, git, openssl, autoconf, pkgs, makeStaticLibraries }:
22
33# TODO: distinct packages for gambit-release and gambit-devel
44
55stdenv.mkDerivation rec {
66 name = "gambit-${version}";
7− version = "4.8.8-427-g37b111a5";
7+ version = "4.8.8-435-gd1991ba7";
88 bootstrap = import ./bootstrap.nix ( pkgs );
99
1010 src = fetchgit {
1111 url = "https://github.com/feeley/gambit.git";
12− rev = "37b111a5ca3aeff9dc6cb8be470277a8c1e80f24";
13− sha256 = "14l7jql9nh7bjs6c822a17rcp9583l6bb5kiq95allgyf229vy50";
12+ rev = "d1991ba7e90ed0149964320f7cafa1a8289e61f0";
13+ sha256 = "02harwcsqxxcxgn2yc1y9kyxdp32mampyvnbxrzg2jzfmnp5g6cm";
1414 };
1515
16− buildInputs = [ openssl git autoconf bootstrap ];
16+ # Use makeStaticLibraries to enable creation of statically linked binaries
17+ buildInputs = [ git autoconf bootstrap openssl (makeStaticLibraries openssl)];
1718
1819 configurePhase = ''
1920 options=(
pkgs/development/compilers/gerbil/default.nix+24−10
@@ -1,24 +1,26 @@
1−{ stdenv, fetchurl, fetchgit, gambit,
1+{ stdenv, lib, fetchurl, fetchgit, makeStaticLibraries, gambit,
22 coreutils, rsync, bash,
3− openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb }:
3+ openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb, postgresql }:
44
55# TODO: distinct packages for gerbil-release and gerbil-devel
6+# TODO: make static compilation work
67
78stdenv.mkDerivation rec {
89 name = "gerbil-${version}";
910
10− version = "0.12-DEV-1030-gbbed3bc";
11+ version = "0.12-DEV-1404-g0a266db";
1112 src = fetchgit {
1213 url = "https://github.com/vyzo/gerbil.git";
13− rev = "bbed3bc4cf7bcaa64eaabdf097192bfcc2bfc928";
14− sha256 = "1dc0j143j860yq72lfjp71fin7hpsy1426azz7rl1szxvjfb7h4r";
14+ rev = "0a266db5e2e241272711bc150cc2607204bf2b78";
15+ sha256 = "1lvawqn8havfyxkkgfqffc213zq2pgm179l42yj49fy3fhpzia4m";
1516 };
1617
17− buildInputs = [
18− gambit
19− coreutils rsync bash
20− openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb
21− ];
18+ # Use makeStaticLibraries to enable creation of statically linked binaries
19+ buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb postgresql ];
20+ buildInputs_staticLibraries = map makeStaticLibraries buildInputs_libraries;
21+
22+ buildInputs = [ gambit coreutils rsync bash ]
23+ ++ buildInputs_libraries ++ buildInputs_staticLibraries;
2224
2325 NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
2426
@@ -30,6 +32,18 @@ stdenv.mkDerivation rec {
3032 find . -type f -executable -print0 | while IFS= read -r -d ''$'\0' f; do
3133 substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env'
3234 done
35+
36+ cat > etc/gerbil_static_libraries.sh <<EOF
37+#OPENSSL_LIBCRYPTO=${makeStaticLibraries openssl}/lib/libcrypto.a # MISSING!
38+#OPENSSL_LIBSSL=${makeStaticLibraries openssl}/lib/libssl.a # MISSING!
39+ZLIB=${makeStaticLibraries zlib}/lib/libz.a
40+# SQLITE=${makeStaticLibraries sqlite}/lib/sqlite.a # MISSING!
41+# LIBXML2=${makeStaticLibraries libxml2}/lib/libxml2.a # MISSING!
42+# YAML=${makeStaticLibraries libyaml}/lib/libyaml.a # MISSING!
43+MYSQL=${makeStaticLibraries mysql.connector-c}/lib/mariadb/libmariadb.a
44+# LMDB=${makeStaticLibraries lmdb}/lib/mysql/libmysqlclient_r.a # MISSING!
45+LEVELDB=${makeStaticLibraries lmdb}/lib/libleveldb.a
46+EOF
3347 '';
3448
3549 buildPhase = ''