libGLU: 9.0.2 -> 9.0.3
While at it added trivial updater. Changes: https://cgit.freedesktop.org/mesa/glu/log/?h=glu-9.0.3
This commit is contained in:
parent
79aa627be6
commit
706ffe10a1
@ -1,19 +1,22 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, libGL, ApplicationServices
|
{ lib, stdenv, fetchurl
|
||||||
|
, meson, ninja
|
||||||
|
, pkg-config, libGL, ApplicationServices
|
||||||
, testers
|
, testers
|
||||||
|
, gitUpdater
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "glu";
|
pname = "glu";
|
||||||
version = "9.0.2";
|
version = "9.0.3";
|
||||||
|
|
||||||
src = let
|
src = let
|
||||||
inherit (finalAttrs) pname version;
|
inherit (finalAttrs) pname version;
|
||||||
in fetchurl {
|
in fetchurl {
|
||||||
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
|
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-bnKA/1hcah2d/N8vykiSUWNLM3e/wzwp5AAkZqONAtQ=";
|
hash = "sha256-vUP+EvN0sRkusV/iDkX/RWubwmq1fw7ukZ+Wyg+KMw8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||||
propagatedBuildInputs = [ libGL ]
|
propagatedBuildInputs = [ libGL ]
|
||||||
++ lib.optional stdenv.isDarwin ApplicationServices;
|
++ lib.optional stdenv.isDarwin ApplicationServices;
|
||||||
|
|
||||||
@ -21,7 +24,16 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
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-";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "OpenGL utility library";
|
description = "OpenGL utility library";
|
||||||
|
Loading…
Reference in New Issue
Block a user