gdk-pixbuf: add updateScript
This commit is contained in:
parent
478e3b6252
commit
fd692bbc11
@ -1,17 +1,17 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11
|
{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11, gnome3
|
||||||
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:
|
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ver_maj = "2.36";
|
pname = "gdk-pixbuf";
|
||||||
ver_min = "7";
|
version = "2.36.7";
|
||||||
# TODO: since 2.36.8 gdk-pixbuf gets configured to use mime-type sniffing,
|
# TODO: since 2.36.8 gdk-pixbuf gets configured to use mime-type sniffing,
|
||||||
# which apparently requires access to shared-mime-info files during runtime.
|
# which apparently requires access to shared-mime-info files during runtime.
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gdk-pixbuf-${ver_maj}.${ver_min}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "1b6e5eef09d98f05f383014ecd3503e25dfb03d7e5b5f5904e5a65b049a6a4d8";
|
sha256 = "1b6e5eef09d98f05f383014ecd3503e25dfb03d7e5b5f5904e5a65b049a6a4d8";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,6 +47,13 @@ stdenv.mkDerivation rec {
|
|||||||
# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
|
# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
|
||||||
inherit (doCheck);
|
inherit (doCheck);
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gdk_pixbuf";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A library for image loading and manipulation";
|
description = "A library for image loading and manipulation";
|
||||||
homepage = http://library.gnome.org/devel/gdk-pixbuf/;
|
homepage = http://library.gnome.org/devel/gdk-pixbuf/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user