Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
libglut,
|
|
libGL,
|
|
libGLU,
|
|
libX11,
|
|
libxcb,
|
|
libXext,
|
|
libgbm,
|
|
mesa,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
wayland,
|
|
wayland-scanner,
|
|
wayland-protocols,
|
|
vulkan-loader,
|
|
libxkbcommon,
|
|
libdecor,
|
|
glslang,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mesa-demos";
|
|
version = "9.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://archive.mesa3d.org/demos/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-MEaj0mp7BRr3690lel8jv+sWDK1u2VIynN/x6fHtSWs=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wayland-scanner
|
|
glslang
|
|
];
|
|
|
|
buildInputs = [
|
|
libglut
|
|
libX11
|
|
libxcb
|
|
libXext
|
|
libGL
|
|
libGLU
|
|
libgbm
|
|
wayland
|
|
wayland-protocols
|
|
vulkan-loader
|
|
libxkbcommon
|
|
libdecor
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Degl=${if stdenv.hostPlatform.isDarwin then "disabled" else "auto"}"
|
|
(lib.mesonEnable "libdrm" (stdenv.hostPlatform.isLinux))
|
|
(lib.mesonEnable "osmesa" false)
|
|
(lib.mesonEnable "wayland" (lib.meta.availableOn stdenv.hostPlatform wayland))
|
|
];
|
|
|
|
meta = with lib; {
|
|
inherit (mesa.meta) homepage platforms;
|
|
description = "Collection of demos and test programs for OpenGL and Mesa";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ andersk ];
|
|
};
|
|
}
|