libmtp: fix built against `gettext-0.25`

Without the change the build fails as:

configure.ac:265: the top level
configure:14220: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

authored by Sergei Trofimovich and committed by Alyssa Ross be84b997 36030ba7

+19 -1
+19 -1
pkgs/by-name/li/libmtp/package.nix
··· 3 autoconf, 4 automake, 5 fetchFromGitHub, 6 gettext, 7 lib, 8 libiconv, ··· 23 sha256 = "sha256-hIH6W8qQ6DB4ST7SlFz6CCnLsEGOWgmUb9HoHMNA3wY="; 24 }; 25 26 outputs = [ 27 "bin" 28 "dev" ··· 41 42 propagatedBuildInputs = [ libusb1 ]; 43 44 - preConfigure = "NOCONFIGURE=1 ./autogen.sh"; 45 46 configureFlags = [ "--with-udev=${placeholder "out"}/lib/udev" ]; 47
··· 3 autoconf, 4 automake, 5 fetchFromGitHub, 6 + fetchpatch, 7 gettext, 8 lib, 9 libiconv, ··· 24 sha256 = "sha256-hIH6W8qQ6DB4ST7SlFz6CCnLsEGOWgmUb9HoHMNA3wY="; 25 }; 26 27 + patches = [ 28 + # gettext-0.25 support 29 + (fetchpatch { 30 + name = "gettext-0.25.patch"; 31 + url = "https://github.com/libmtp/libmtp/commit/5e53ee68e61cc6547476b942b6aa9776da5d4eda.patch"; 32 + hash = "sha256-eXDNDHg8K+ZiO9n4RqQPJrh4V9GNiK/ZxZOA/oIX83M="; 33 + }) 34 + (fetchpatch { 35 + name = "gettext-0.25-p2.patch"; 36 + url = "https://github.com/libmtp/libmtp/commit/122eb9d78b370955b9c4d7618b12a2429f01b81a.patch"; 37 + hash = "sha256-Skqr6REBl/Egf9tS5q8k5qmEhFY+rG2fymbiu9e4Mho="; 38 + }) 39 + ]; 40 + 41 outputs = [ 42 "bin" 43 "dev" ··· 56 57 propagatedBuildInputs = [ libusb1 ]; 58 59 + preConfigure = '' 60 + autopoint -f 61 + NOCONFIGURE=1 ./autogen.sh 62 + ''; 63 64 configureFlags = [ "--with-udev=${placeholder "out"}/lib/udev" ]; 65