primusLib: fix receiving long library paths

This commit is contained in:
Nikolay Amiantov 2017-01-30 19:21:28 +03:00
parent 2fd2fcf54d
commit a841f6097c

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, fetchpatch
, libX11, mesa_noglu
, nvidia_x11 ? null
, libglvnd
@ -20,6 +20,14 @@ in stdenv.mkDerivation {
sha256 = "118jm57ccawskb8vjq3a9dpa2gh72nxzvx2zk7zknpy0arrdznj1";
};
patches = [
# Bump buffer size for long library paths.
(fetchpatch {
url = "https://github.com/abbradar/primus/commit/2f429e232581c556df4f4bf210aee8a0c99c60b7.patch";
sha256 = "1da6ynz7r7x98495i329sf821308j1rpy8prcdraqahz7p4c89nc";
})
];
buildInputs = [ libX11 mesa_noglu ];
makeFlags = [ "LIBDIR=$(out)/lib"