2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2024-07-27 06:49:29 +00:00
|
|
|
, libglut
|
2023-07-15 17:15:38 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, mesa
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-scanner
|
|
|
|
, wayland-protocols
|
|
|
|
, vulkan-loader
|
|
|
|
, libxkbcommon
|
|
|
|
, libdecor
|
|
|
|
, glslang
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mesa-demos";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "9.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-24 00:07:29 +00:00
|
|
|
url = "https://archive.mesa3d.org/demos/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-MEaj0mp7BRr3690lel8jv+sWDK1u2VIynN/x6fHtSWs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wayland-scanner
|
|
|
|
glslang
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
buildInputs = [
|
2024-07-27 06:49:29 +00:00
|
|
|
libglut
|
2023-07-15 17:15:38 +00:00
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
mesa
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
vulkan-loader
|
|
|
|
libxkbcommon
|
|
|
|
libdecor
|
2024-07-27 06:49:29 +00:00
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
mesonFlags = [
|
2024-09-26 11:04:55 +00:00
|
|
|
"-Degl=${if stdenv.hostPlatform.isDarwin then "disabled" else "auto"}"
|
|
|
|
(lib.mesonEnable "libdrm" (stdenv.hostPlatform.isLinux))
|
2024-09-19 14:19:46 +00:00
|
|
|
(lib.mesonEnable "osmesa" false)
|
|
|
|
(lib.mesonEnable "wayland" (lib.meta.availableOn stdenv.hostPlatform wayland))
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
inherit (mesa.meta) homepage platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Collection of demos and test programs for OpenGL and Mesa";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ andersk ];
|
|
|
|
};
|
|
|
|
}
|