1 { lib, stdenv, fetchurl
3 , pkg-config, libGL, ApplicationServices
8 stdenv.mkDerivation (finalAttrs: {
13 inherit (finalAttrs) pname version;
15 url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
16 hash = "sha256-vUP+EvN0sRkusV/iDkX/RWubwmq1fw7ukZ+Wyg+KMw8=";
19 nativeBuildInputs = [ meson ninja pkg-config ];
20 propagatedBuildInputs = [ libGL ]
21 ++ lib.optional stdenv.isDarwin ApplicationServices;
23 outputs = [ "out" "dev" ];
25 enableParallelBuilding = true;
29 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
31 updateScript = gitUpdater {
32 # No nicer place to find latest release.
33 url = "https://gitlab.freedesktop.org/mesa/glu";
39 description = "OpenGL utility library";
40 homepage = "https://cgit.freedesktop.org/mesa/glu/";
41 license = lib.licenses.sgi-b-20;
42 pkgConfigModules = [ "glu" ];
43 platforms = lib.platforms.unix;
44 broken = stdenv.hostPlatform.isAndroid;