mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
libwnck3: 3.30.0 → 3.32.0
https://gitlab.gnome.org/GNOME/libwnck/blob/3.32.0/NEWS#L1-33
This commit is contained in:
parent
8746c77a38
commit
3e47ef9790
@ -1,31 +1,78 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libX11, gtk3, intltool, gobject-introspection, gnome3 }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkgconfig
|
||||||
|
, gtk-doc
|
||||||
|
, docbook_xsl
|
||||||
|
, docbook_xml_dtd_412
|
||||||
|
, libX11
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, pango
|
||||||
|
, cairo
|
||||||
|
, libXres
|
||||||
|
, libstartup_notification
|
||||||
|
, gettext
|
||||||
|
, gobject-introspection
|
||||||
|
, gnome3
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec{
|
||||||
pname = "libwnck";
|
pname = "libwnck";
|
||||||
version = "3.30.0";
|
version = "3.32.0";
|
||||||
in stdenv.mkDerivation rec{
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
||||||
sha256 = "0f9lvhm3w25046dqq8xyg7nzggxpmdriwrb661nng05a8qk0svdc";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
|
|
||||||
configureFlags = [ "--enable-introspection" ];
|
src = fetchurl {
|
||||||
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
|
sha256 = "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm";
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool gobject-introspection ];
|
patches = [
|
||||||
propagatedBuildInputs = [ libX11 gtk3 ];
|
# https://gitlab.gnome.org/GNOME/libwnck/issues/139
|
||||||
|
(fetchpatch {
|
||||||
|
url = https://gitlab.gnome.org/GNOME/libwnck/commit/0d9ff7db63af568feef8e8c566e249058ccfcb4e.patch;
|
||||||
|
sha256 = "18f78aayq9jma54v2qz3rm2clmz1cfq5bngxw8p4zba7hplyqsl9";
|
||||||
|
})
|
||||||
|
# https://gitlab.gnome.org/GNOME/libwnck/merge_requests/12
|
||||||
|
./fix-pc-file.patch
|
||||||
|
];
|
||||||
|
|
||||||
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
|
nativeBuildInputs = [
|
||||||
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
|
meson
|
||||||
|
ninja
|
||||||
|
pkgconfig
|
||||||
|
gettext
|
||||||
|
gobject-introspection
|
||||||
|
gtk-doc
|
||||||
|
docbook_xsl
|
||||||
|
docbook_xml_dtd_412
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libX11
|
||||||
|
libstartup_notification
|
||||||
|
pango
|
||||||
|
cairo
|
||||||
|
libXres
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
packageName = pname;
|
packageName = pname;
|
||||||
attrPath = "gnome3.${pname}";
|
attrPath = "${pname}${stdenv.lib.versions.major version}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
24
pkgs/development/libraries/libwnck/fix-pc-file.patch
Normal file
24
pkgs/development/libraries/libwnck/fix-pc-file.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 28799d8..047e523 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -72,11 +72,15 @@
|
||||||
|
pc_conf = configuration_data()
|
||||||
|
pc_conf.set('prefix', get_option('prefix'))
|
||||||
|
pc_conf.set('exec_prefix', '${prefix}')
|
||||||
|
-pc_conf.set('libdir', '${exec_prefix}/' + get_option('libdir'))
|
||||||
|
-pc_conf.set('includedir', '${prefix}/' + get_option('includedir'))
|
||||||
|
-pc_conf.set('STARTUP_NOTIFICATION_PACKAGE', STARTUP_NOTIFICATION_PACKAGE)
|
||||||
|
+pc_conf.set('libdir', '${exec_prefix}' / get_option('libdir'))
|
||||||
|
+pc_conf.set('includedir', '${prefix}' / get_option('includedir'))
|
||||||
|
+if conf.has('HAVE_' + STARTUP_NOTIFICATION_PACKAGE.to_upper().underscorify())
|
||||||
|
+ pc_conf.set('STARTUP_NOTIFICATION_PACKAGE', STARTUP_NOTIFICATION_PACKAGE)
|
||||||
|
+endif
|
||||||
|
pc_conf.set('X11_PACKAGE', X11_PACKAGE)
|
||||||
|
-pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
|
||||||
|
+if conf.has('HAVE_' + XRES_PACKAGE.to_upper().underscorify())
|
||||||
|
+ pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
|
||||||
|
+endif
|
||||||
|
pc_conf.set('VERSION', meson.project_version())
|
||||||
|
|
||||||
|
foreach pc: [PACKAGE_NAME, PACKAGE_NAME + '-uninstalled']
|
Loading…
Reference in New Issue
Block a user