diff options
author | Robin Gloster <mail@glob.in> | 2016-01-17 23:04:40 +0000 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-01-18 10:45:31 +0100 |
commit | 53b389327e34de319dc0dbda2b6bcab1a69db69d (patch) | |
tree | 04dece6a1e346ccb4563f61ec206cf03dc46e77f /pkgs/tools/misc/mdbtools | |
parent | 620c147ccee09d7d068fa21b2b5b94b6695993a5 (diff) |
refactor to use autoreconfHook where possible
Close #12446.
Diffstat (limited to 'pkgs/tools/misc/mdbtools')
-rw-r--r-- | pkgs/tools/misc/mdbtools/git.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/tools/misc/mdbtools/git.nix b/pkgs/tools/misc/mdbtools/git.nix index 8cf5e5e9a38d6..777fc7bfd16de 100644 --- a/pkgs/tools/misc/mdbtools/git.nix +++ b/pkgs/tools/misc/mdbtools/git.nix @@ -1,6 +1,5 @@ -{ stdenv, fetchurl, fetchgit, glib, readline, bison, flex, pkgconfig, - libiconv, autoconf, automake, libtool, which, txt2man, gnome_doc_utils, - scrollkeeper}: +{ stdenv, fetchgit, glib, readline, bison, flex, pkgconfig, + libiconv, autoreconfHook, which, txt2man, gnome_doc_utils, scrollkeeper }: stdenv.mkDerivation { name = "mdbtools-git-2014-07-25"; @@ -12,16 +11,18 @@ stdenv.mkDerivation { }; buildInputs = [ - glib readline bison flex pkgconfig autoconf automake - libtool which txt2man gnome_doc_utils scrollkeeper libiconv + glib readline bison flex autoreconfHook pkgconfig which txt2man + gnome_doc_utils scrollkeeper libiconv ]; + preAutoreconf = '' + sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \ + -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \ + -i configure.ac + ''; + preConfigure = '' sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c - sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \ - -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \ - -i configure.ac - autoreconf -i -f ''; meta = { |