2023-02-16 17:41:37 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libGL, ApplicationServices
|
|
|
|
, testers
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "glu";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "9.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = let
|
|
|
|
inherit (finalAttrs) pname version;
|
|
|
|
in fetchurl {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-bnKA/1hcah2d/N8vykiSUWNLM3e/wzwp5AAkZqONAtQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ libGL ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional stdenv.isDarwin ApplicationServices;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "OpenGL utility library";
|
|
|
|
homepage = "https://cgit.freedesktop.org/mesa/glu/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.sgi-b-20;
|
2023-02-16 17:41:37 +00:00
|
|
|
pkgConfigModules = [ "glu" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = stdenv.hostPlatform.isAndroid;
|
|
|
|
};
|
2023-02-16 17:41:37 +00:00
|
|
|
})
|