1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

libglvnd: enable 64-bit file APIs

Without the change 32-bit programs like `wine` or `mesa-demos` fail to
start on filesystems with 64-bit inodes.

Pull the patch pending upstream inclusion:
https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/288
This commit is contained in:
Sergei Trofimovich 2023-11-14 18:43:28 +00:00
parent 2387a37fa0
commit 8f0842b0ca

View file

@ -1,4 +1,5 @@
{ stdenv, lib, fetchFromGitLab
, fetchpatch
, autoreconfHook, pkg-config, python3, addOpenGLRunpath
, libX11, libXext, xorgproto
}:
@ -15,6 +16,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-p/vLxagN9nCYw1JpUmZetgctQbrp3Wo33OVFrtvmnjQ=";
};
patches = [
# Enable 64-bit file APIs on 32-bit systems:
# https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/288
(fetchpatch {
name = "large-file.patch";
url = "https://gitlab.freedesktop.org/glvnd/libglvnd/-/commit/956d2d3f531841cabfeddd940be4c48b00c226b4.patch";
hash = "sha256-Y6YCzd/jZ1VZP9bFlHkHjzSwShXeA7iJWdyfxpgT2l0=";
})
];
nativeBuildInputs = [ autoreconfHook pkg-config python3 addOpenGLRunpath ];
buildInputs = [ libX11 libXext xorgproto ];