cogl: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 07:13:28 +01:00
parent 1a17154047
commit 010f2df147
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,16 +1,15 @@
{ stdenv, fetchurl, pkgconfig, mesa_noglu, glib, gdk_pixbuf, xorg, libintlOrEmpty
, pangoSupport ? true, pango, cairo, gobjectIntrospection, wayland
, pangoSupport ? true, pango, cairo, gobjectIntrospection, wayland, gnome3
, gstreamerSupport ? true, gst_all_1 }:
let
ver_maj = "1.22";
ver_min = "2";
in
stdenv.mkDerivation rec {
name = "cogl-${ver_maj}.${ver_min}";
pname = "cogl";
version = "1.22.2";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/cogl/${ver_maj}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "03f0ha3qk7ca0nnkkcr1garrm1n1vvfqhkz9lwjm592fnv6ii9rr";
};
@ -42,6 +41,12 @@ stdenv.mkDerivation rec {
#doCheck = true; # all tests fail (no idea why)
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "A small open source library for using 3D graphics hardware for rendering";
maintainers = with maintainers; [ lovek323 ];