2023-09-12 07:43:01 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, meson, ninja
|
|
|
|
, pkg-config, libGL, ApplicationServices
|
2023-02-11 14:10:54 +00:00
|
|
|
, testers
|
2023-09-12 07:43:01 +00:00
|
|
|
, gitUpdater
|
2023-02-11 14:10:54 +00:00
|
|
|
}:
|
2013-01-30 15:43:04 +00:00
|
|
|
|
2023-02-11 14:10:54 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "glu";
|
2023-09-12 07:43:01 +00:00
|
|
|
version = "9.0.3";
|
2013-01-30 15:43:04 +00:00
|
|
|
|
2023-02-11 14:10:54 +00:00
|
|
|
src = let
|
|
|
|
inherit (finalAttrs) pname version;
|
|
|
|
in fetchurl {
|
2020-04-17 15:35:16 +00:00
|
|
|
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
|
2023-09-12 07:43:01 +00:00
|
|
|
hash = "sha256-vUP+EvN0sRkusV/iDkX/RWubwmq1fw7ukZ+Wyg+KMw8=";
|
2013-01-30 15:43:04 +00:00
|
|
|
};
|
|
|
|
|
2023-09-12 07:43:01 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2019-06-05 02:23:05 +00:00
|
|
|
propagatedBuildInputs = [ libGL ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isDarwin ApplicationServices;
|
2013-01-31 21:44:31 +00:00
|
|
|
|
2016-09-01 15:23:12 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-08-13 13:02:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-09-12 07:43:01 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
updateScript = gitUpdater {
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "https://gitlab.freedesktop.org/mesa/glu";
|
|
|
|
rev-prefix = "glu-";
|
|
|
|
};
|
|
|
|
};
|
2023-02-11 14:10:54 +00:00
|
|
|
|
2013-01-30 15:43:04 +00:00
|
|
|
meta = {
|
|
|
|
description = "OpenGL utility library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://cgit.freedesktop.org/mesa/glu/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.sgi-b-20;
|
2023-02-11 14:10:54 +00:00
|
|
|
pkgConfigModules = [ "glu" ];
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2019-02-22 15:36:48 +00:00
|
|
|
broken = stdenv.hostPlatform.isAndroid;
|
2013-01-30 15:43:04 +00:00
|
|
|
};
|
2023-02-11 14:10:54 +00:00
|
|
|
})
|