Nix configurations for my homelab
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

modules/games.nix: use mesa from nixpkgs

yemou ca64d340 0cba0bcf

+1 -53
+1 -53
modules/games.nix
··· 1 - { lib, pkgs, ... }: 1 + { pkgs, ... }: 2 2 { 3 3 imports = [ ./unfree.nix ]; 4 4 ··· 32 32 ); 33 33 34 34 r2modman = prev.r2modman.override { electron = prev.electron-bin; }; 35 - 36 - mesa = prev.mesa.overrideAttrs ( 37 - finalAttrs: prevAttrs: { 38 - git-commit = "d561be1c273cefca600683d96ce62994e8b6eff0"; 39 - version = "25.2.0-${finalAttrs.git-commit}"; 40 - 41 - src = prev.fetchFromGitLab { 42 - owner = "mesa"; 43 - repo = "mesa"; 44 - rev = finalAttrs.git-commit; 45 - hash = "sha256-KCtNJ9Zk25v308hW4XBWcrRCDEKyDsWg9P3d8VLK4qQ="; 46 - domain = "gitlab.freedesktop.org"; 47 - }; 48 - 49 - patches = [ ./packages/mesa/opencl.patch ]; 50 - 51 - postPatch = 52 - let 53 - rustDeps = [ 54 - { 55 - pname = "quote"; 56 - version = "1.0.35"; 57 - hash = "sha256-B1J1BytAPRoiQMEWRh9+Lii8VElcN2bIdooQt9HBqHc="; 58 - } 59 - { 60 - pname = "rustc-hash"; 61 - version = "2.1.1"; 62 - hash = "sha256-3rQidUAExJ19STn7RtKNIpZrQUne2VVH7B1IO5UY91k="; 63 - } 64 - { 65 - pname = "syn"; 66 - version = "2.0.87"; 67 - hash = "sha256-QYnGHt5ZzKUNaJpyaOYVR5yevNQWIebpuJcRXtg3VX0="; 68 - } 69 - ]; 70 - 71 - copyRustDep = dep: '' 72 - cp -R --no-preserve=mode,ownership ${prev.fetchCrate dep} subprojects/${dep.pname}-${dep.version} 73 - cp -R subprojects/packagefiles/${dep.pname}/* subprojects/${dep.pname}-${dep.version}/ 74 - ''; 75 - 76 - copyRustDeps = lib.concatStringsSep "\n" (builtins.map copyRustDep rustDeps); 77 - in 78 - prevAttrs.postPatch + "${copyRustDeps}"; 79 - 80 - mesonFlags = 81 - lib.lists.remove (lib.mesonEnable "gallium-xa" true) ( 82 - lib.lists.remove (lib.mesonBool "gallium-nine" false) prevAttrs.mesonFlags 83 - ) 84 - ++ [ (lib.mesonEnable "gallium-mediafoundation" false) ]; 85 - } 86 - ); 87 35 88 36 # rpcs3 = 89 37 # let