@@ -1,11 +1,12 @@
1−{ stdenv, fetchurl, cpio, zlib, bzip2, file, elfutils, libarchive, nspr, nss, popt, db, xz, python, lua, pkgconfig, autoreconfHook }:
1+{ stdenv, fetchurl, cpio, zlib, bzip2, file, elfutils, libarchive, nspr, nss, popt, db, xz, python, lua, pkgconfig, binutils, autoreconfHook }:
22
33stdenv.mkDerivation rec {
4− name = "rpm-4.13.0-rc1";
4+ name = "rpm-${version}";
5+ version = "4.13.0.1";
56
67 src = fetchurl {
7− url = "http://www.rpm.org/releases/testing/rpm-4.13.0-rc1.tar.bz2";
8− sha256 = "097mc0kkrf09c01hrgi71df7maahmvayfgsvspnxigvl3xysv8hp";
8+ url = "http://ftp.rpm.org/releases/rpm-4.13.x/rpm-${version}.tar.bz2";
9+ sha256 = "27fc7ba7d419622b1ce34d6507aa70b0808bc344021d298072a0c2ec165f9b0d";
910 };
1011
1112 outputs = [ "out" "dev" "man" ];
@@ -13,7 +14,7 @@ stdenv.mkDerivation rec {
1314 buildInputs = [ cpio zlib bzip2 file libarchive nspr nss db xz python lua pkgconfig autoreconfHook ];
1415
1516 # rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
16− propagatedBuildInputs = [ popt elfutils nss db bzip2 libarchive ];
17+ propagatedBuildInputs = [ popt elfutils nss db bzip2 libarchive binutils ];
1718
1819 NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss";
1920
@@ -25,6 +26,8 @@ stdenv.mkDerivation rec {
2526 "--sharedstatedir=/com"
2627 ];
2728
29+ patches = [ ./rpm-4.13.0.1-bfd-config.patch ];
30+
2831 postPatch = ''
2932 # For Python3, the original expression evaluates as 'python3.4' but we want 'python3.4m' here
3033 substituteInPlace configure.ac --replace 'python''${PYTHON_VERSION}' ${python.executable}