Skip to content

Commit 2c4cfe8

Browse files
committedJan 13, 2025
virglrenderer: build on darwin
1 parent fa39fa6 commit 2c4cfe8

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
 

‎pkgs/by-name/vi/virglrenderer/package.nix

+13-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
libX11,
1212
libdrm,
1313
libgbm,
14-
vaapiSupport ? true,
14+
vaapiSupport ? !stdenv.hostPlatform.isDarwin,
1515
libva,
1616
gitUpdater,
1717
}:
@@ -27,13 +27,17 @@ stdenv.mkDerivation rec {
2727

2828
separateDebugInfo = true;
2929

30-
buildInputs = [
31-
libGLU
32-
libepoxy
33-
libX11
34-
libdrm
35-
libgbm
36-
] ++ lib.optionals vaapiSupport [ libva ];
30+
buildInputs =
31+
[
32+
libGLU
33+
libepoxy
34+
libX11
35+
]
36+
++ lib.optionals vaapiSupport [ libva ]
37+
++ lib.optionals stdenv.hostPlatform.isLinux [
38+
libdrm
39+
libgbm
40+
];
3741

3842
nativeBuildInputs = [
3943
meson
@@ -58,7 +62,7 @@ stdenv.mkDerivation rec {
5862
mainProgram = "virgl_test_server";
5963
homepage = "https://virgil3d.github.io/";
6064
license = licenses.mit;
61-
platforms = platforms.linux;
65+
platforms = platforms.unix;
6266
maintainers = [ maintainers.xeji ];
6367
};
6468
}

0 commit comments

Comments
 (0)
Please sign in to comment.