From 748adbac7ca3452d0a1250c37ff4168d6ccf5ae0 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 14 Feb 2023 23:36:38 +0900 Subject: feat(nixos): init kompakt --- .../packages/mesa-asahi-edge/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix (limited to 'nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix') diff --git a/nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix b/nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix new file mode 100644 index 0000000..6a18ecc --- /dev/null +++ b/nixos/modules/apple-silicon-support/packages/mesa-asahi-edge/default.nix @@ -0,0 +1,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; +}) -- cgit 1.4.1