about summary refs log tree commit diff
path: root/nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix
blob: 6a18ecc3aba47b25c17f0dd8cfc6545f24e145d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib
, fetchFromGitLab
, mesa }:

(mesa.override {
  galliumDrivers = [ "swrast" "asahi" ];
  vulkanDrivers = [ "swrast" ];
  enableGalliumNine = false;
}).overrideAttrs (oldAttrs: {
  version = "23.0.0";
  # https://github.com/AsahiLinux/PKGBUILDs/blob/stable/mesa-asahi-edge/PKGBUILD
  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
    owner = "asahi";
    repo = "mesa";
    rev = "01a8a3f3d6089d980e7ae56f6e631c8213f0e49d";
    hash = "sha256-i4W9pyoELTKFlhTMPIEHTmBGR21+kVDukm351XtPjL8=";
  };
  # remove flag to configure xvmc functionality as having it
  # breaks the build because that no longer exists in Mesa 23
  mesonFlags = lib.filter (x: !(lib.hasPrefix "-Dxvmc-libs-path=" x)) oldAttrs.mesonFlags;
})