mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
fbda1dbfd6
Allow the macOS GLUT framework to be used automatically in many cases. Packages that specifically search for freeglut or require its additional APIs should still explicitly depend on it. Deliberately skip the Haskell package set, which is mostly automatically generated, and mupdf, which has its own fork of freeglut.
72 lines
1.1 KiB
Nix
72 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, libglut
|
|
, libGL
|
|
, libGLU
|
|
, libX11
|
|
, libXext
|
|
, 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=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wayland-scanner
|
|
glslang
|
|
];
|
|
|
|
buildInputs = [
|
|
libglut
|
|
libX11
|
|
libXext
|
|
libGL
|
|
libGLU
|
|
mesa
|
|
wayland
|
|
wayland-protocols
|
|
vulkan-loader
|
|
libxkbcommon
|
|
libdecor
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dwith-system-data-files=true"
|
|
"-Dgles1=disabled"
|
|
"-Dosmesa=disabled"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|