2013-12-26 05:48:17 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
2015-01-06 19:36:08 +00:00
|
|
|
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
2016-07-25 20:25:42 +00:00
|
|
|
, glib_networking, gsettings_desktop_schemas, libsoup, pcre, gnome3
|
2013-12-26 05:48:17 +00:00
|
|
|
}:
|
2008-09-07 12:58:56 +00:00
|
|
|
|
2014-01-23 21:28:30 +00:00
|
|
|
let
|
2016-07-25 20:25:42 +00:00
|
|
|
version = "0.5.11";
|
2014-01-23 21:28:30 +00:00
|
|
|
in
|
2013-12-26 05:48:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-23 21:28:30 +00:00
|
|
|
name = "midori-${version}";
|
2013-12-26 05:48:17 +00:00
|
|
|
|
2016-07-25 20:25:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-26 05:48:17 +00:00
|
|
|
description = "Lightweight WebKitGTK+ web browser";
|
2014-12-18 09:47:59 +00:00
|
|
|
homepage = "http://midori-browser.org";
|
2016-07-25 20:25:42 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin ramkromberg ];
|
2008-09-07 12:58:56 +00:00
|
|
|
};
|
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
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 20:25:42 +00:00
|
|
|
sha256 = "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn";
|
2013-12-26 05:48:17 +00:00
|
|
|
};
|
2008-09-07 12:58:56 +00:00
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig intltool vala makeWrapper
|
2016-07-25 20:25:42 +00:00
|
|
|
webkitgtk librsvg libnotify sqlite gsettings_desktop_schemas pcre gnome3.gcr
|
|
|
|
(libsoup.override {gnomeSupport = true; valaSupport = true;})
|
2013-12-26 05:48:17 +00:00
|
|
|
];
|
2012-03-25 11:22:32 +00:00
|
|
|
|
2016-07-25 20:25:42 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DUSE_ZEITGEIST=OFF"
|
|
|
|
"-DHALF_BRO_INCOM_WEBKIT2=OFF"
|
|
|
|
"-DUSE_GTK3=1"
|
|
|
|
];
|
2009-08-24 14:24:47 +00:00
|
|
|
|
2016-03-27 22:02:10 +00:00
|
|
|
NIX_LDFLAGS="-lX11";
|
|
|
|
|
2014-04-17 08:25:20 +00:00
|
|
|
preFixup = ''
|
2013-12-26 05:48:17 +00:00
|
|
|
wrapProgram $out/bin/midori \
|
2015-10-11 14:06:34 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules" \
|
2014-04-17 08:25:20 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2013-12-26 05:48:17 +00:00
|
|
|
'';
|
2008-09-07 12:58:56 +00:00
|
|
|
}
|