mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
Update version of urweb compiler.
svn path=/nixpkgs/trunk/; revision=27801
This commit is contained in:
parent
5693872dc1
commit
abbf22c397
|
@ -2,27 +2,29 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "urweb";
|
||||
version = "20110517";
|
||||
version = "20110715";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.impredicative.com/ur/${name}.tgz";
|
||||
sha256 = "1jmaj62laf8q4f07jrg6r2gb1ky120n21qfzpia3q5j5ihjiavb1";
|
||||
sha256 = "1qaz6alabhi7jmpsj7x0x4sskkjf05619maym133y2lkgdnvhydh";
|
||||
};
|
||||
|
||||
buildInputs = [ stdenv.gcc file openssl mlton mysql postgresql sqlite ];
|
||||
|
||||
patches = [ ./remove-header-include-directory-prefix.patch ];
|
||||
|
||||
postPatch = ''
|
||||
prePatch = ''
|
||||
sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure
|
||||
sed -e 's@gcc @${stdenv.gcc}/bin/gcc @g' -i src/compiler.sml
|
||||
'';
|
||||
|
||||
preConfigure =
|
||||
''
|
||||
export GCCARGS="-I$out/include -I${mysql}/include/mysql -I${postgresql}/include -I${sqlite}/include \
|
||||
-L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"
|
||||
export GCCARGS="-I$out/include \
|
||||
-L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib";
|
||||
|
||||
export PGHEADER="${postgresql}/include/libpq-fe.h";
|
||||
export MSHEADER="${mysql}/include/mysql/mysql.h";
|
||||
export SQHEADER="${sqlite}/include/sqlite3.h";
|
||||
'';
|
||||
|
||||
configureFlags = "--with-openssl=${openssl}";
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
diff -Naur urweb-orig/src/mysql.sml urweb-patched/src/mysql.sml
|
||||
--- urweb-orig/src/mysql.sml 2010-08-23 15:36:58.665234434 -0430
|
||||
+++ urweb-patched/src/mysql.sml 2010-08-23 15:44:10.765238334 -0430
|
||||
@@ -1521,7 +1521,7 @@
|
||||
fun p_blank _ = "?"
|
||||
|
||||
val () = addDbms {name = "mysql",
|
||||
- header = "mysql/mysql.h",
|
||||
+ header = "mysql.h",
|
||||
link = "-lmysqlclient",
|
||||
init = init,
|
||||
p_sql_type = p_sql_type,
|
||||
diff -Naur urweb-orig/src/postgres.sml urweb-patched/src/postgres.sml
|
||||
--- urweb-orig/src/postgres.sml 2010-08-23 15:36:58.666253464 -0430
|
||||
+++ urweb-patched/src/postgres.sml 2010-08-23 15:43:26.216251221 -0430
|
||||
@@ -928,7 +928,7 @@
|
||||
fun p_blank (n, t) = p_cast ("$" ^ Int.toString n, t)
|
||||
|
||||
val () = addDbms {name = "postgres",
|
||||
- header = "postgresql/libpq-fe.h",
|
||||
+ header = "libpq-fe.h",
|
||||
link = "-lpq",
|
||||
p_sql_type = p_sql_type,
|
||||
init = init,
|
Loading…
Reference in a new issue