mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
midori: update to current webkitgtk (#17731)
This commit is contained in:
parent
4cbcab54a6
commit
7802a0f14b
@ -1,19 +1,21 @@
|
|||||||
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, wrapGAppsHook
|
||||||
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
||||||
, glib_networking, gsettings_desktop_schemas, libsoup, pcre, gnome3
|
, glib_networking, gsettings_desktop_schemas, libsoup, pcre, gnome3
|
||||||
|
, libxcb, libpthreadstubs, libXdmcp, libxkbcommon, epoxy, at_spi2_core
|
||||||
|
, zeitgeistSupport ? false, zeitgeist ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
assert zeitgeistSupport -> zeitgeist != null;
|
||||||
version = "0.5.11";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "midori-${version}";
|
name = "midori-${version}";
|
||||||
|
version = "0.5.11";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Lightweight WebKitGTK+ web browser";
|
description = "Lightweight WebKitGTK+ web browser";
|
||||||
homepage = "http://midori-browser.org";
|
homepage = "http://midori-browser.org";
|
||||||
license = licenses.lgpl21Plus;
|
license = with licenses; [ lgpl21Plus ];
|
||||||
platforms = platforms.linux;
|
platforms = with platforms; linux;
|
||||||
maintainers = with maintainers; [ raskin ramkromberg ];
|
maintainers = with maintainers; [ raskin ramkromberg ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -26,24 +28,29 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn";
|
sha256 = "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgconfig wrapGAppsHook cmake intltool
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake pkgconfig intltool vala makeWrapper
|
vala
|
||||||
webkitgtk librsvg libnotify sqlite gsettings_desktop_schemas pcre gnome3.gcr
|
gtk3 webkitgtk librsvg libnotify sqlite gsettings_desktop_schemas pcre gnome3.gcr
|
||||||
|
libxcb libpthreadstubs libXdmcp libxkbcommon epoxy at_spi2_core
|
||||||
(libsoup.override {gnomeSupport = true; valaSupport = true;})
|
(libsoup.override {gnomeSupport = true; valaSupport = true;})
|
||||||
|
] ++ stdenv.lib.optionals zeitgeistSupport [
|
||||||
|
zeitgeist
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
"-DUSE_ZEITGEIST=OFF"
|
"-DUSE_ZEITGEIST=${if zeitgeistSupport then "ON" else "OFF"}"
|
||||||
"-DHALF_BRO_INCOM_WEBKIT2=OFF"
|
"-DHALF_BRO_INCOM_WEBKIT2=ON"
|
||||||
"-DUSE_GTK3=1"
|
"-DUSE_GTK3=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS="-lX11";
|
NIX_LDFLAGS="-lX11";
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
wrapProgram $out/bin/midori \
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" --prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules")
|
||||||
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules" \
|
|
||||||
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -13848,9 +13848,7 @@ in
|
|||||||
|
|
||||||
mid2key = callPackage ../applications/audio/mid2key { };
|
mid2key = callPackage ../applications/audio/mid2key { };
|
||||||
|
|
||||||
midori-unwrapped = callPackage ../applications/networking/browsers/midori {
|
midori-unwrapped = callPackage ../applications/networking/browsers/midori { };
|
||||||
webkitgtk = webkitgtk24x;
|
|
||||||
};
|
|
||||||
midori = wrapFirefox midori-unwrapped { };
|
midori = wrapFirefox midori-unwrapped { };
|
||||||
|
|
||||||
mikmod = callPackage ../applications/audio/mikmod { };
|
mikmod = callPackage ../applications/audio/mikmod { };
|
||||||
|
Loading…
Reference in New Issue
Block a user