nixpkgs/pkgs/desktops/gnome-2/platform/libgnomeprint/default.nix

30 lines
874 B
Nix
Raw Normal View History

2020-01-06 03:16:12 -08:00
{ stdenv, fetchurl, fetchpatch, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl
, libgnomecups, bison, flex }:
stdenv.mkDerivation rec {
libgnomeprint: updated to version 2.18.8 I made this update hoping that it would fix the build errors with CUPS 1.5.x, but unfortunately the new version still fails to compile: gnome-print-cups-transport.c:59:2: error: expected specifier-qualifier-list before 'FILE' gnome-print-cups-transport.c: In function 'gp_transport_cups_init': gnome-print-cups-transport.c:128:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_finalize': gnome-print-cups-transport.c:140:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_open': gnome-print-cups-transport.c:194:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:196:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_close': gnome-print-cups-transport.c:238:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:241:23: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:245:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_write': gnome-print-cups-transport.c:270:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:276:13: warning: incompatible implicit declaration of built-in function 'fwrite' gnome-print-cups-transport.c:276:57: error: 'GPTransportCups' has no member named 'file' make[4]: *** [gnome-print-cups-transport.lo] Error 1 I commit the update anyway, because (a) I feel that having the latest version probably can't hurt and (b) the old expression had an incorrect name attribute, which is now fixed. svn path=/nixpkgs/trunk/; revision=29281
2011-09-14 10:35:26 -07:00
name = "libgnomeprint-2.18.8";
src = fetchurl {
libgnomeprint: updated to version 2.18.8 I made this update hoping that it would fix the build errors with CUPS 1.5.x, but unfortunately the new version still fails to compile: gnome-print-cups-transport.c:59:2: error: expected specifier-qualifier-list before 'FILE' gnome-print-cups-transport.c: In function 'gp_transport_cups_init': gnome-print-cups-transport.c:128:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_finalize': gnome-print-cups-transport.c:140:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_open': gnome-print-cups-transport.c:194:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:196:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_close': gnome-print-cups-transport.c:238:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:241:23: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:245:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_write': gnome-print-cups-transport.c:270:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:276:13: warning: incompatible implicit declaration of built-in function 'fwrite' gnome-print-cups-transport.c:276:57: error: 'GPTransportCups' has no member named 'file' make[4]: *** [gnome-print-cups-transport.lo] Error 1 I commit the update anyway, because (a) I feel that having the latest version probably can't hurt and (b) the old expression had an incorrect name attribute, which is now fixed. svn path=/nixpkgs/trunk/; revision=29281
2011-09-14 10:35:26 -07:00
url = "mirror://gnome/sources/libgnomeprint/2.18/${name}.tar.bz2";
sha256 = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691";
};
libgnomeprint: updated to version 2.18.8 I made this update hoping that it would fix the build errors with CUPS 1.5.x, but unfortunately the new version still fails to compile: gnome-print-cups-transport.c:59:2: error: expected specifier-qualifier-list before 'FILE' gnome-print-cups-transport.c: In function 'gp_transport_cups_init': gnome-print-cups-transport.c:128:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_finalize': gnome-print-cups-transport.c:140:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_open': gnome-print-cups-transport.c:194:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:196:15: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_close': gnome-print-cups-transport.c:238:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:241:23: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:245:11: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c: In function 'gp_transport_cups_write': gnome-print-cups-transport.c:270:2: error: 'GPTransportCups' has no member named 'file' gnome-print-cups-transport.c:276:13: warning: incompatible implicit declaration of built-in function 'fwrite' gnome-print-cups-transport.c:276:57: error: 'GPTransportCups' has no member named 'file' make[4]: *** [gnome-print-cups-transport.lo] Error 1 I commit the update anyway, because (a) I feel that having the latest version probably can't hurt and (b) the old expression had an incorrect name attribute, which is now fixed. svn path=/nixpkgs/trunk/; revision=29281
2011-09-14 10:35:26 -07:00
2020-01-06 03:16:12 -08:00
patches = [
./bug653388.patch
# Fix compatibility with bison 3
(fetchpatch {
url = "https://github.com/pld-linux/libgnomeprint/raw/54c0f9c3675b86c53f6d77a5bc526ce9ef0e38cd/bison3.patch";
sha256 = "1sp04jbv34i1gcwf377hhmwdsmqzig70dd06rjz1isb6zwh4y01l";
})
];
nativeBuildInputs = [ pkgconfig ];
2020-01-06 03:16:12 -08:00
buildInputs = [ gtk2 gettext intltool libart_lgpl libgnomecups bison flex ];
propagatedBuildInputs = [ libxml2 ];
2013-06-18 13:50:15 -07:00
meta = with stdenv.lib; {
platforms = platforms.linux;
};
}