diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index e8a311a651a9..1582fc4fdcd4 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -153,4 +153,11 @@ in configureFlags = "LIBUUID_CFLAGS='' LIBUUID_LIBS=''"; }; + lndir = attrs: attrs // { + preConfigure = '' + substituteInPlace lndir.c \ + --replace 'n_dirs--;' "" + ''; + }; + }