Skip to content

Commit

Permalink
gdk-pixbuf: security 2.34.0 -> 2.36.2
Browse files Browse the repository at this point in the history
/cc #21457.  The rebuild impact is probably only a few thousand.
The new utility is put into $out/bin/.

(cherry picked from commit 421a7f3)
Full bump done, as API+ABI only added new symbols in the meantime.
https://abi-laboratory.pro/tracker/timeline/gdk-pixbuf/
  • Loading branch information
vcunat committed Dec 28, 2016
1 parent 0d0f5f7 commit f3d3835
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions pkgs/development/libraries/gdk-pixbuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:

let
ver_maj = "2.34";
ver_min = "0";
ver_maj = "2.36";
ver_min = "2";
in
stdenv.mkDerivation rec {
name = "gdk-pixbuf-${ver_maj}.${ver_min}";

src = fetchurl {
url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz";
sha256 = "0yc8indbl3hf18z6x6kjg59xp9sngm1d8vmz4c7bs6g27qw5npnm";
sha256 = "3a082ad67d68b55970aed0b2034a06618167be98a42d5c70de736756b45d325d";
};

outputs = [ "out" "dev" "devdoc" ];
outputBin = "dev";

setupHook = ./setup-hook.sh;

Expand All @@ -27,14 +26,21 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [ glib libtiff libjpeg libpng jasper ];

configureFlags = "--with-libjasper --with-x11"
+ stdenv.lib.optionalString (gobjectIntrospection != null) " --enable-introspection=yes"
;

# on darwin, tests don't link
preBuild = stdenv.lib.optionalString (stdenv.isDarwin && !doCheck) ''
substituteInPlace Makefile --replace "docs tests" "docs"
'';

configureFlags = "--with-libjasper --with-x11"
+ stdenv.lib.optionalString (gobjectIntrospection != null) " --enable-introspection=yes"
;
postInstall =
# All except one utility seem to be only useful during building.
''
moveToOutput "bin" "$dev"
moveToOutput "bin/gdk-pixbuf-thumbnailer" "$out"
'';

# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
inherit (doCheck);
Expand Down

0 comments on commit f3d3835

Please sign in to comment.