forked from mirrors/nixpkgs
gerbil: 0.12-DEV-1030-gbbed3bc -> 0.12-DEV-1404-g0a266db
This commit is contained in:
parent
abfaa5a36e
commit
544e548978
|
@ -1,24 +1,26 @@
|
||||||
{ stdenv, fetchurl, fetchgit, gambit,
|
{ stdenv, lib, fetchurl, fetchgit, makeStaticLibraries, gambit,
|
||||||
coreutils, rsync, bash,
|
coreutils, rsync, bash,
|
||||||
openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb }:
|
openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb, postgresql }:
|
||||||
|
|
||||||
# TODO: distinct packages for gerbil-release and gerbil-devel
|
# TODO: distinct packages for gerbil-release and gerbil-devel
|
||||||
|
# TODO: make static compilation work
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gerbil-${version}";
|
name = "gerbil-${version}";
|
||||||
|
|
||||||
version = "0.12-DEV-1030-gbbed3bc";
|
version = "0.12-DEV-1404-g0a266db";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/vyzo/gerbil.git";
|
url = "https://github.com/vyzo/gerbil.git";
|
||||||
rev = "bbed3bc4cf7bcaa64eaabdf097192bfcc2bfc928";
|
rev = "0a266db5e2e241272711bc150cc2607204bf2b78";
|
||||||
sha256 = "1dc0j143j860yq72lfjp71fin7hpsy1426azz7rl1szxvjfb7h4r";
|
sha256 = "1lvawqn8havfyxkkgfqffc213zq2pgm179l42yj49fy3fhpzia4m";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
# Use makeStaticLibraries to enable creation of statically linked binaries
|
||||||
gambit
|
buildInputs_libraries = [ openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb postgresql ];
|
||||||
coreutils rsync bash
|
buildInputs_staticLibraries = map makeStaticLibraries buildInputs_libraries;
|
||||||
openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb
|
|
||||||
];
|
buildInputs = [ gambit coreutils rsync bash ]
|
||||||
|
++ buildInputs_libraries ++ buildInputs_staticLibraries;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
|
NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
|
||||||
|
|
||||||
|
@ -30,6 +32,18 @@ stdenv.mkDerivation rec {
|
||||||
find . -type f -executable -print0 | while IFS= read -r -d ''$'\0' f; do
|
find . -type f -executable -print0 | while IFS= read -r -d ''$'\0' f; do
|
||||||
substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env'
|
substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env'
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cat > etc/gerbil_static_libraries.sh <<EOF
|
||||||
|
#OPENSSL_LIBCRYPTO=${makeStaticLibraries openssl}/lib/libcrypto.a # MISSING!
|
||||||
|
#OPENSSL_LIBSSL=${makeStaticLibraries openssl}/lib/libssl.a # MISSING!
|
||||||
|
ZLIB=${makeStaticLibraries zlib}/lib/libz.a
|
||||||
|
# SQLITE=${makeStaticLibraries sqlite}/lib/sqlite.a # MISSING!
|
||||||
|
# LIBXML2=${makeStaticLibraries libxml2}/lib/libxml2.a # MISSING!
|
||||||
|
# YAML=${makeStaticLibraries libyaml}/lib/libyaml.a # MISSING!
|
||||||
|
MYSQL=${makeStaticLibraries mysql.connector-c}/lib/mariadb/libmariadb.a
|
||||||
|
# LMDB=${makeStaticLibraries lmdb}/lib/mysql/libmysqlclient_r.a # MISSING!
|
||||||
|
LEVELDB=${makeStaticLibraries lmdb}/lib/libleveldb.a
|
||||||
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue