@@ -1,4 +1,6 @@
1−{ stdenv, fetchFromGitHub, autoconf, automake, boost, pkgconfig, libtool, acl, libxml2, btrfs-progs, dbus_libs, docbook_xsl, libxslt, docbook_xml_dtd_45, diffutils, pam, utillinux, attr, gettext }:
1+{ stdenv, fetchFromGitHub
2+, autoreconfHook, diffutils, pkgconfig, docbook_xsl, libxml2, libxslt, docbook_xml_dtd_45
3+, acl, attr, boost, btrfs-progs, dbus_libs, pam, utillinux }:
24
35stdenv.mkDerivation rec {
46 name = "snapper-${ver}";
@@ -11,7 +13,13 @@ stdenv.mkDerivation rec {
1113 sha256 = "1rj8vy6hq140pbnc7mjjb34mfqdgdah1dmlv2073izdgakh7p38j";
1214 };
1315
14− buildInputs = [ autoconf automake boost pkgconfig libtool acl libxml2 btrfs-progs dbus_libs docbook_xsl libxslt docbook_xml_dtd_45 diffutils pam utillinux attr gettext ];
16+ buildInputs = [
17+ acl attr boost btrfs-progs dbus_libs pam utillinux
18+ ];
19+ nativeBuildInputs = [
20+ autoreconfHook diffutils pkgconfig
21+ docbook_xsl libxml2 libxslt docbook_xml_dtd_45
22+ ];
1523
1624 patchPhase = ''
1725 # work around missing btrfs/version.h; otherwise, use "-DHAVE_BTRFS_VERSION_H"
@@ -23,12 +31,6 @@ stdenv.mkDerivation rec {
2331 '';
2432
2533 configurePhase = ''
26− aclocal
27− libtoolize --force --automake --copy
28− autoheader
29− automake --add-missing --copy
30− autoconf
31−
3234 ./configure --disable-silent-rules --disable-ext4 --disable-btrfs-quota --prefix=$out
3335 '';
3436