2013-12-26 05:48:17 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
2013-12-26 16:16:57 +00:00
|
|
|
, gtk3, webkitgtk, librsvg, libnotify
|
2013-12-26 05:48:17 +00:00
|
|
|
, glib_networking, gsettings_desktop_schemas
|
|
|
|
}:
|
2008-09-07 13:58:56 +01:00
|
|
|
|
2014-01-23 21:28:30 +00:00
|
|
|
let
|
|
|
|
version = "0.5.7";
|
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight WebKitGTK+ web browser";
|
|
|
|
homepage = "http://www.midori-browser.org";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin iyzsong ];
|
2008-09-07 13:58:56 +01:00
|
|
|
};
|
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
src = fetchurl {
|
2014-01-23 21:28:30 +00:00
|
|
|
url = "${meta.homepage}/downloads/midori_${version}_all_.tar.bz2";
|
|
|
|
sha256 = "0k8bppicgzm97g5x8ahvpw9wvg2f1mq093qp8biwr858m0mbnx98";
|
2013-12-26 05:48:17 +00:00
|
|
|
};
|
2008-09-07 13:58:56 +01:00
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig intltool vala makeWrapper
|
|
|
|
webkitgtk librsvg libnotify
|
|
|
|
];
|
2012-03-25 12:22:32 +01:00
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
cmakeFlags = ''
|
2013-12-26 12:16:09 +00:00
|
|
|
-DHALF_BRO_INCOM_WEBKIT2=ON
|
2013-12-26 05:48:17 +00:00
|
|
|
-DUSE_ZEITGEIST=OFF
|
|
|
|
'';
|
2009-08-24 15:24:47 +01:00
|
|
|
|
2014-04-17 09:25:20 +01:00
|
|
|
preFixup = ''
|
2013-12-26 05:48:17 +00:00
|
|
|
wrapProgram $out/bin/midori \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2014-04-17 09:25:20 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2013-12-26 05:48:17 +00:00
|
|
|
'';
|
2008-09-07 13:58:56 +01:00
|
|
|
}
|