xbps: fix build with gcc8

This commit is contained in:
Franz Pletz 2019-01-11 10:55:26 +01:00
parent 62c60f471c
commit f0a1f7e026
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, which, zlib, openssl, libarchive }:
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, which, zlib, openssl, libarchive }:
stdenv.mkDerivation rec {
name = "xbps-${version}";
@ -15,7 +15,13 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib openssl libarchive ];
patches = [ ./cert-paths.patch ];
patches = [
./cert-paths.patch
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/void-linux/xbps/pull/38.patch";
sha256 = "050a9chw0cxy67nm2phz67mgndarrxrv50d54m3l1s5sx83axww3";
})
];
postPatch = ''
# fix unprefixed ranlib (needed on cross)