nixpkgs/pkgs/applications/networking/browsers/midori/default.nix

55 lines
1.7 KiB
Nix
Raw Normal View History

2017-12-19 05:10:37 +00:00
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala_0_34, wrapGAppsHook
2015-01-06 19:36:08 +00:00
, gtk3, webkitgtk, librsvg, libnotify, sqlite
, glib-networking, gsettings-desktop-schemas, libsoup, pcre, gnome3
, libxcb, libpthreadstubs, libXdmcp, libxkbcommon, epoxy, at-spi2-core
, zeitgeistSupport ? false, zeitgeist ? null
}:
assert zeitgeistSupport -> zeitgeist != null;
stdenv.mkDerivation rec {
2014-01-23 21:28:30 +00:00
name = "midori-${version}";
version = "0.5.11";
2016-07-25 21:25:42 +01:00
meta = with stdenv.lib; {
description = "Lightweight WebKitGTK+ web browser";
homepage = http://midori-browser.org;
license = with licenses; [ lgpl21Plus ];
platforms = with platforms; linux;
2016-07-25 21:25:42 +01:00
maintainers = with maintainers; [ raskin ramkromberg ];
};
src = fetchurl {
2014-12-18 09:47:59 +00:00
urls = [
"${meta.homepage}/downloads/midori_${version}_all_.tar.bz2"
"http://mirrors-ru.go-parts.com/blfs/conglomeration/midori/midori_${version}_all_.tar.bz2"
];
name = "midori_${version}_all_.tar.bz2";
2016-07-25 21:25:42 +01:00
sha256 = "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn";
};
nativeBuildInputs = [
2017-12-19 05:10:37 +00:00
pkgconfig wrapGAppsHook cmake intltool vala_0_34
];
buildInputs = [
gtk3 webkitgtk librsvg libnotify sqlite gsettings-desktop-schemas pcre gnome3.gcr
libxcb libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core
2016-07-25 21:25:42 +01:00
(libsoup.override {gnomeSupport = true; valaSupport = true;})
] ++ stdenv.lib.optionals zeitgeistSupport [
zeitgeist
];
cmakeFlags = [
"-DUSE_ZEITGEIST=${if zeitgeistSupport then "ON" else "OFF"}"
"-DHALF_BRO_INCOM_WEBKIT2=ON"
2016-07-25 21:25:42 +01:00
"-DUSE_GTK3=1"
];
2016-03-27 23:02:10 +01:00
NIX_LDFLAGS="-lX11";
preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" --prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules")
'';
}