2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libGL, ApplicationServices }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glu";
|
|
|
|
version = "9.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1g2m634p73mixkzv1qz1d0flwm390ydi41bwmchiqvdssqnlqnpv";
|
|
|
|
};
|
|
|
|
|
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" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = stdenv.hostPlatform.isAndroid;
|
|
|
|
};
|
|
|
|
}
|