diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-29 18:55:16 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-29 18:55:16 +0000 |
commit | 907bb1aac65dd3acbdd2b6be831a82d051b8c5c2 (patch) | |
tree | db10eb10d726b31601d4eaec77e74c1dcb779941 /pkgs/development/libraries | |
parent | ad1c77118f74d84ea2026da237fd50cca4ee9180 (diff) |
* ltrace: updated to 0.5.3.
* libdbi / libdbi-drivers: updated to 0.8.3, and make it compile with SQLite. * qemu-image: fix the URL. * gdmap: make it build again (requires an older GTK+). * rlwrap: updated to 0.37. * smbfs-fuse -> fusesmb to match the upstream name. * x11vnc: updated to 0.9.10. * clearlyU: fix the URL. * Various packages: follow the coding conventions. svn path=/nixpkgs/trunk/; revision=22814
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/libdbi-drivers/default.nix | 64 | ||||
-rw-r--r-- | pkgs/development/libraries/libdbi/default.nix | 31 |
2 files changed, 41 insertions, 54 deletions
diff --git a/pkgs/development/libraries/libdbi-drivers/default.nix b/pkgs/development/libraries/libdbi-drivers/default.nix index bb146a5cddffe..6f61d9b3cadea 100644 --- a/pkgs/development/libraries/libdbi-drivers/default.nix +++ b/pkgs/development/libraries/libdbi-drivers/default.nix @@ -1,39 +1,31 @@ -args : with args; - let localDefs = builderDefs.passthru.function { - src = /* put a fetchurl here */ - fetchurl { - url = mirror://sourceforge/libdbi-drivers/libdbi-drivers-0.8.2-1.tar.gz; - sha256 = "1bflwl1k3rf1h8clx3zv5pxnm5hbhq6izikv0phkss3qxkjm61ap"; - }; +{ stdenv, fetchurl, libdbi, mysql ? null, sqlite ? null }: - buildInputs = [libdbi] - ++(if args ? mysql then [args.mysql] else []) - ++(if args ? sqlite then [args.sqlite] else []) - ; - configureFlags = [ - " --enable-libdbi " - " --with-dbi-incdir=${libdbi}/include " - " --with-dbi-libdir=${libdbi}/lib " - ] - ++ (if args ? mysql then [ - " --with-mysql " - " --with-mysql-incdir=${args.mysql}/include/mysql " - " --with-mysql-libdir=${args.mysql}/lib/mysql " - ] else []) - ++ (if args ? sqlite then [ - " --with-sqlite " - " --with-sqlite-incdir=${args.sqlite}/include/sqlite " - " --with-sqlite-libdir=${args.sqlite}/lib/sqlite " - ] else []) - ; - }; - in with localDefs; stdenv.mkDerivation rec { - name = "libdbi-0.8.2-1"; - builder = writeScript (name + "-builder") - (textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]); - meta = { - description = "DB independent interface to DB; DB drivers (mysql only for now)"; - inherit src; - }; + name = "libdbi-drivers-0.8.3-1"; + + src = fetchurl { + url = "mirror://sourceforge/libdbi-drivers/${name}.tar.gz"; + sha256 = "0wng59xnq8jjyp6f3bfjrhjvqrswamrjykdnxq6rqxnfk11r9faa"; + }; + + buildInputs = [ libdbi mysql sqlite ]; + + configureFlags = + [ "--disable-docs" + "--enable-libdbi" + "--with-dbi-incdir=${libdbi}/include" + "--with-dbi-libdir=${libdbi}/lib" + ] ++ stdenv.lib.optionals (mysql != null) + [ "--with-mysql" + "--with-mysql-incdir=${mysql}/include/mysql" + "--with-mysql-libdir=${mysql}/lib/mysql" + ] ++ stdenv.lib.optionals (sqlite != null) + [ "--with-sqlite3" + "--with-sqlite3-incdir=${sqlite}/include/sqlite" + "--with-sqlite3-libdir=${sqlite}/lib/sqlite" + ]; + + meta = { + description = "Database drivers for libdbi"; + }; } diff --git a/pkgs/development/libraries/libdbi/default.nix b/pkgs/development/libraries/libdbi/default.nix index b908c76fa78c3..11bb4965a4e36 100644 --- a/pkgs/development/libraries/libdbi/default.nix +++ b/pkgs/development/libraries/libdbi/default.nix @@ -1,21 +1,16 @@ -args : with args; - let localDefs = builderDefs.passthru.function { - src = /* put a fetchurl here */ - fetchurl { - url = mirror://sourceforge/libdbi/libdbi-0.8.2.tar.gz; - sha256 = "01zlfv9hd4iv9v1xlh64ajdgx95jb0sjpazavapqc0zwiagwcg4d"; - }; +{ stdenv, fetchurl }: - buildInputs = []; - configureFlags = []; - }; - in with localDefs; stdenv.mkDerivation rec { - name = "libdbi-0.8.2"; - builder = writeScript (name + "-builder") - (textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]); - meta = { - description = "DB independent interface to DB"; - inherit src; - }; + name = "libdbi-0.8.3"; + + src = fetchurl { + url = "mirror://sourceforge/libdbi/${name}.tar.gz"; + sha256 = "1qx5d5ikx65k73ir9rf557ri6j99ihsnjqqyznqsf7dvprb1ir3j"; + }; + + configureFlags = "--disable-docs"; + + meta = { + description = "DB independent interface to DB"; + }; } |