2018-03-17 18:47:55 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libGL }:
|
2013-01-30 19:43:04 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 18:47:55 +03:00
|
|
|
name = "glu-${version}";
|
|
|
|
version = "9.0.0";
|
2013-01-30 19:43:04 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.freedesktop.org/pub/mesa/glu/${name}.tar.bz2";
|
|
|
|
sha256 = "04nzlil3a6fifcmb95iix3yl8mbxdl66b99s62yzq8m7g79x0yhz";
|
|
|
|
};
|
2016-03-28 12:32:34 +03:00
|
|
|
postPatch = ''
|
|
|
|
echo 'Cflags: -I''${includedir}' >> glu.pc.in
|
|
|
|
'';
|
2013-01-30 19:43:04 +04:00
|
|
|
|
2017-09-06 00:25:26 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-03-17 18:47:55 +03:00
|
|
|
propagatedBuildInputs = [ libGL ];
|
2013-02-01 01:44:31 +04:00
|
|
|
|
2016-09-01 18:23:12 +03:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2013-01-30 19:43:04 +04:00
|
|
|
meta = {
|
|
|
|
description = "OpenGL utility library";
|
2017-08-03 00:50:51 +03:00
|
|
|
homepage = https://cgit.freedesktop.org/mesa/glu/;
|
2014-11-06 03:44:33 +03:00
|
|
|
license = stdenv.lib.licenses.sgi-b-20;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-01-30 19:43:04 +04:00
|
|
|
};
|
|
|
|
}
|