Merge pull request #88086 from jtojnar/gdk-pixbuf-xlib-drop
This commit is contained in:
commit
38acc397c8
@ -1,23 +1,43 @@
|
|||||||
{ stdenv, fetchurl, nixosTests, fixDarwinDylibNames, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
|
{ stdenv
|
||||||
, docbook_xml_dtd_43, gtk-doc, glib, libtiff, libjpeg, libpng, libX11, gnome3
|
, fetchurl
|
||||||
, gobject-introspection, doCheck ? false, makeWrapper
|
, nixosTests
|
||||||
|
, fixDarwinDylibNames
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, gettext
|
||||||
|
, python3
|
||||||
|
, libxml2
|
||||||
|
, libxslt
|
||||||
|
, docbook-xsl-nons
|
||||||
|
, docbook_xml_dtd_43
|
||||||
|
, gtk-doc
|
||||||
|
, glib
|
||||||
|
, libtiff
|
||||||
|
, libjpeg
|
||||||
|
, libpng
|
||||||
|
, gnome3
|
||||||
|
, gobject-introspection
|
||||||
|
, doCheck ? false
|
||||||
|
, makeWrapper
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
pname = "gdk-pixbuf";
|
pname = "gdk-pixbuf";
|
||||||
version = "2.40.0";
|
version = "2.40.0";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm";
|
sha256 = "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Move installed tests to a separate output
|
# Move installed tests to a separate output
|
||||||
./installed-tests-path.patch
|
./installed-tests-path.patch
|
||||||
|
|
||||||
# Temporary until the fix is released.
|
# Temporary until the fix is released.
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "tests-circular-table.patch";
|
name = "tests-circular-table.patch";
|
||||||
@ -26,24 +46,34 @@ in stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
|
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
|
||||||
|
|
||||||
# !!! We might want to factor out the gdk-pixbuf-xlib subpackage.
|
|
||||||
buildInputs = [ libX11 ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson ninja pkgconfig gettext python3 libxml2 libxslt docbook_xsl docbook_xml_dtd_43
|
meson
|
||||||
gtk-doc gobject-introspection makeWrapper glib
|
ninja
|
||||||
]
|
pkg-config
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
gettext
|
||||||
|
python3
|
||||||
|
libxml2
|
||||||
|
libxslt
|
||||||
|
docbook-xsl-nons
|
||||||
|
docbook_xml_dtd_43
|
||||||
|
gtk-doc
|
||||||
|
gobject-introspection
|
||||||
|
makeWrapper
|
||||||
|
glib
|
||||||
|
] ++ stdenv.lib.optional stdenv.isDarwin [
|
||||||
|
fixDarwinDylibNames
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ glib libtiff libjpeg libpng ];
|
propagatedBuildInputs = [
|
||||||
|
glib
|
||||||
|
libtiff
|
||||||
|
libjpeg
|
||||||
|
libpng
|
||||||
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Ddocs=true"
|
"-Ddocs=true"
|
||||||
"-Dx11=true"
|
"-Dx11=false" # use gdk-pixbuf-xlib
|
||||||
"-Dgir=${if gobject-introspection != null then "true" else "false"}"
|
"-Dgir=${if gobject-introspection != null then "true" else "false"}"
|
||||||
"-Dgio_sniffing=false"
|
"-Dgio_sniffing=false"
|
||||||
];
|
];
|
||||||
@ -87,6 +117,8 @@ in 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;
|
||||||
|
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
packageName = pname;
|
packageName = pname;
|
||||||
@ -102,8 +134,8 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
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 = "https://gitlab.gnome.org/GNOME/gdk-pixbuf";
|
||||||
maintainers = [ maintainers.eelco ];
|
maintainers = [ maintainers.eelco ] ++ teams.gnome.members;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
55
pkgs/development/libraries/gdk-pixbuf/xlib.nix
Normal file
55
pkgs/development/libraries/gdk-pixbuf/xlib.nix
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, docbook-xsl-nons
|
||||||
|
, docbook_xml_dtd_43
|
||||||
|
, gtk-doc
|
||||||
|
, gdk-pixbuf
|
||||||
|
, libX11
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "gdk-pixbuf-xlib";
|
||||||
|
version = "2019-10-19-unstable";
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
domain = "gitlab.gnome.org";
|
||||||
|
owner = "Archive";
|
||||||
|
repo = "gdk-pixbuf-xlib";
|
||||||
|
rev = "dc22ea36f69755007c66877284596df270532cc1";
|
||||||
|
sha256 = "XhBQ4wano+MtGaqF6JNKoWgYQN6eBW+b8ZCGEBGt8IM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
docbook-xsl-nons
|
||||||
|
docbook_xml_dtd_43
|
||||||
|
gtk-doc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libX11
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
gdk-pixbuf
|
||||||
|
];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Deprecated API for integrating GdkPixbuf with Xlib data types";
|
||||||
|
homepage = "https://gitlab.gnome.org/Archive/gdk-pixbuf-xlib";
|
||||||
|
maintainers = teams.gnome.members;
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -12161,6 +12161,8 @@ in
|
|||||||
|
|
||||||
gdk-pixbuf = callPackage ../development/libraries/gdk-pixbuf { };
|
gdk-pixbuf = callPackage ../development/libraries/gdk-pixbuf { };
|
||||||
|
|
||||||
|
gdk-pixbuf-xlib = callPackage ../development/libraries/gdk-pixbuf/xlib.nix { };
|
||||||
|
|
||||||
gnome-sharp = callPackage ../development/libraries/gnome-sharp { };
|
gnome-sharp = callPackage ../development/libraries/gnome-sharp { };
|
||||||
|
|
||||||
gnome-menus = callPackage ../development/libraries/gnome-menus { };
|
gnome-menus = callPackage ../development/libraries/gnome-menus { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user