summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-04-25 17:12:06 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-04-25 18:37:43 +0200
commit70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad (patch)
treed54e3440c02bd385f7ded26683bc4cf52b46bc58 /pkgs/development
parent9587c6ce011cc7e24d938430bfec3cec67ffc92c (diff)
downloadnixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar.gz
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar.bz2
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar.lz
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar.xz
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.tar.zst
nixpkgs-70a5ba0ac9b4f9a2bd73bafe954f2bc070ee14ad.zip
gdk_pixbuf: fix installedTests
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/gdk-pixbuf/default.nix29
-rw-r--r--pkgs/development/libraries/gdk-pixbuf/installed-tests-path.patch12
2 files changed, 29 insertions, 12 deletions
diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix
index f9f041e955b..97a979945c1 100644
--- a/pkgs/development/libraries/gdk-pixbuf/default.nix
+++ b/pkgs/development/libraries/gdk-pixbuf/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
+{ stdenv, fetchurl, fetchgit, fetchpatch, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
 , docbook_xml_dtd_43, gtk-doc, glib, libtiff, libjpeg, libpng, libX11, gnome3
 , jasper, gobjectIntrospection, doCheck ? false, makeWrapper }:
 
@@ -9,9 +9,15 @@ in
 stdenv.mkDerivation rec {
   name = "${pname}-${version}";
 
-  src = fetchurl {
-    url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
-    sha256 = "0d534ysa6n9prd17wwzisq7mj6qkhwh8wcf8qgin1ar3hbs5ry7z";
+  # TODO: Change back once tests/bug753605-atsize.jpg is part of the dist tarball
+  # src = fetchurl {
+  #   url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
+  #   sha256 = "0d534ysa6n9prd17wwzisq7mj6qkhwh8wcf8qgin1ar3hbs5ry7z";
+  # };
+  src = fetchgit {
+    url = https://git.gnome.org/browse/gdk-pixbuf;
+    rev = version;
+    sha256 = "18lwqg63vyap2m1mw049rnb8fm869429xbf7636a2n21gs3d3jwv";
   };
 
   patches = [
@@ -20,9 +26,20 @@ stdenv.mkDerivation rec {
     # For now, we are patching the build script to avoid the dependency.
     ./no-mime-sniffing.patch
 
-    # Move installed tests to a separate output
-    # They are not usable at the moment, though:
+    # Fix installed tests with meson
     # https://bugzilla.gnome.org/show_bug.cgi?id=795527
+    (fetchurl {
+      url = https://bugzilla.gnome.org/attachment.cgi?id=371381;
+      sha256 = "0nl1cixkjfa5kcfh0laz8h6hdsrpdkxqn7a1k35jrb6zwc9hbydn";
+    })
+
+    # Add missing test file bug753605-atsize.jpg
+    (fetchpatch {
+      url = https://git.gnome.org/browse/gdk-pixbuf/patch/?id=87f8f4bf01dfb9982c1ef991e4060a5e19fdb7a7;
+      sha256 = "1slzywwnrzfx3zjzdsxrvp4g2q4skmv50pdfmyccp41j7bfyb2j0";
+    })
+
+    # Move installed tests to a separate output
     ./installed-tests-path.patch
   ];
 
diff --git a/pkgs/development/libraries/gdk-pixbuf/installed-tests-path.patch b/pkgs/development/libraries/gdk-pixbuf/installed-tests-path.patch
index fb3c04cf80a..1da2b0a10dc 100644
--- a/pkgs/development/libraries/gdk-pixbuf/installed-tests-path.patch
+++ b/pkgs/development/libraries/gdk-pixbuf/installed-tests-path.patch
@@ -1,13 +1,13 @@
 --- a/tests/meson.build
 +++ b/tests/meson.build
-@@ -82,8 +82,8 @@
+@@ -85,8 +85,8 @@
    'aero.gif',
  ]
  
--installed_test_bindir = join_paths(gdk_pixbuf_libexecdir, 'installed-tests', gdk_pixbuf_api_name)
--installed_test_datadir = join_paths(gdk_pixbuf_datadir, 'installed-tests', gdk_pixbuf_api_name)
-+installed_test_bindir = join_paths('@installedtestsprefix@', 'libexec', 'installed-tests', gdk_pixbuf_api_name)
-+installed_test_datadir = join_paths('@installedtestsprefix@', 'share', 'installed-tests', gdk_pixbuf_api_name)
+-installed_test_bindir = join_paths(gdk_pixbuf_libexecdir, 'installed-tests', meson.project_name())
+-installed_test_datadir = join_paths(gdk_pixbuf_datadir, 'installed-tests', meson.project_name())
++installed_test_bindir = join_paths('@installedtestsprefix@', 'libexec', 'installed-tests', meson.project_name())
++installed_test_datadir = join_paths('@installedtestsprefix@', 'share', 'installed-tests', meson.project_name())
  
  install_data(test_data, install_dir: installed_test_bindir)
- 
+ install_subdir('test-images', install_dir: installed_test_bindir)