There’s currently a bug in Mesa 21.0 that I need to fix to get correct behaviour with OBS.
I currently trying to rebuild with this:
but I suspect it would be a lot easier to just repackage OBS to depend on my custom mesa, but OBS doesn’t depend on mesa at all, and I get errors passing mesa to it with override, and I’m getting a little confused if this is the correct behavior.
perhaps I can pass it to hardware.opengl
extraPackages? I’m getting lost! thanks.
nixpkgs.config.packageOverrides = pkgs: {
mesa = (pkgs.mesa.overrideAttrs (oldAttrs: rec {
patches = [( pkgs.fetchurl {
url = "https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9995.diff";
sha256 = "0m7lrqjf4d79sppx7800wkwpyk9axwrch0l5v6lpc5arald77lab";
})] ++ oldAttrs.patches;
})).override {
ninja = pkgs.ninja.overrideAttrs (oldAttrs: rec {
NIX_CFLAGS_COMPILE = pkgs.lib.optionals (pkgs.stdenv.hostPlatform.system == "i686-linux") [
"-D_LARGEFILE_SOURCE"
"-D_FILE_OFFSET_BITS=64"
];
});
};
};