fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1# The Darwin build of Mesa is different enough that we just give it an entire separate expression.
2{
3 lib,
4 stdenv,
5 fetchFromGitLab,
6 bison,
7 flex,
8 libxml2,
9 llvmPackages,
10 meson,
11 ninja,
12 pkg-config,
13 python3Packages,
14 xorg,
15 zlib,
16}:
17let
18 common = import ./common.nix { inherit lib fetchFromGitLab; };
19in
20stdenv.mkDerivation {
21 inherit (common)
22 pname
23 version
24 src
25 meta
26 ;
27
28 outputs = [
29 "out"
30 "dev"
31 ];
32
33 nativeBuildInputs = [
34 bison
35 flex
36 meson
37 ninja
38 pkg-config
39 python3Packages.packaging
40 python3Packages.python
41 python3Packages.mako
42 python3Packages.pyyaml
43 ];
44
45 buildInputs = [
46 libxml2 # should be propagated from libllvm
47 llvmPackages.libllvm
48 xorg.libX11
49 xorg.libXext
50 xorg.libXfixes
51 xorg.libxcb
52 zlib
53 ];
54
55 mesonAutoFeatures = "disabled";
56
57 mesonFlags = [
58 "--sysconfdir=/etc"
59 "--datadir=${placeholder "out"}/share"
60 (lib.mesonEnable "glvnd" false)
61 (lib.mesonEnable "shared-glapi" true)
62 (lib.mesonEnable "llvm" true)
63 ];
64
65 passthru = {
66 # needed to pass evaluation of bad platforms
67 driverLink = throw "driverLink not supported on darwin";
68 # Don't need this on Darwin.
69 llvmpipeHook = null;
70 };
71
72}