tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gdk-pixbuf: add updateScript
Jan Tojnar
8 years ago
fd692bbc
478e3b62
+12
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
gdk-pixbuf
default.nix
+12
-5
pkgs/development/libraries/gdk-pixbuf/default.nix
···
1
-
{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11
2
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:
3
4
let
5
-
ver_maj = "2.36";
6
-
ver_min = "7";
7
# TODO: since 2.36.8 gdk-pixbuf gets configured to use mime-type sniffing,
8
# which apparently requires access to shared-mime-info files during runtime.
9
in
10
stdenv.mkDerivation rec {
11
-
name = "gdk-pixbuf-${ver_maj}.${ver_min}";
12
13
src = fetchurl {
14
-
url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz";
15
sha256 = "1b6e5eef09d98f05f383014ecd3503e25dfb03d7e5b5f5904e5a65b049a6a4d8";
16
};
17
···
46
47
# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
48
inherit (doCheck);
0
0
0
0
0
0
0
49
50
meta = with stdenv.lib; {
51
description = "A library for image loading and manipulation";
···
1
+
{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11, gnome3
2
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:
3
4
let
5
+
pname = "gdk-pixbuf";
6
+
version = "2.36.7";
7
# TODO: since 2.36.8 gdk-pixbuf gets configured to use mime-type sniffing,
8
# which apparently requires access to shared-mime-info files during runtime.
9
in
10
stdenv.mkDerivation rec {
11
+
name = "${pname}-${version}";
12
13
src = fetchurl {
14
+
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
15
sha256 = "1b6e5eef09d98f05f383014ecd3503e25dfb03d7e5b5f5904e5a65b049a6a4d8";
16
};
17
···
46
47
# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
48
inherit (doCheck);
49
+
50
+
passthru = {
51
+
updateScript = gnome3.updateScript {
52
+
packageName = pname;
53
+
attrPath = "gdk_pixbuf";
54
+
};
55
+
};
56
57
meta = with stdenv.lib; {
58
description = "A library for image loading and manipulation";