2013-12-26 06:48:17 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
2013-12-26 17:16:57 +01:00
|
|
|
, gtk3, webkitgtk, librsvg, libnotify
|
2013-12-26 06:48:17 +01:00
|
|
|
, glib_networking, gsettings_desktop_schemas
|
|
|
|
}:
|
2008-09-07 14:58:56 +02:00
|
|
|
|
2014-01-23 22:28:30 +01:00
|
|
|
let
|
2014-04-29 10:53:03 +02:00
|
|
|
version = "0.5.8";
|
2014-01-23 22:28:30 +01:00
|
|
|
in
|
2013-12-26 06:48:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-23 22:28:30 +01:00
|
|
|
name = "midori-${version}";
|
2013-12-26 06:48:17 +01: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 14:58:56 +02:00
|
|
|
};
|
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
src = fetchurl {
|
2014-01-23 22:28:30 +01:00
|
|
|
url = "${meta.homepage}/downloads/midori_${version}_all_.tar.bz2";
|
2014-04-29 10:53:03 +02:00
|
|
|
sha256 = "10ckm98rfqfbwr84b8mc1ssgj84wjgkr4dadvx2l7c64sigi66dg";
|
2013-12-26 06:48:17 +01:00
|
|
|
};
|
2008-09-07 14:58:56 +02:00
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig intltool vala makeWrapper
|
|
|
|
webkitgtk librsvg libnotify
|
|
|
|
];
|
2012-03-25 13:22:32 +02:00
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
cmakeFlags = ''
|
2013-12-26 13:16:09 +01:00
|
|
|
-DHALF_BRO_INCOM_WEBKIT2=ON
|
2013-12-26 06:48:17 +01:00
|
|
|
-DUSE_ZEITGEIST=OFF
|
|
|
|
'';
|
2009-08-24 16:24:47 +02:00
|
|
|
|
2014-04-17 10:25:20 +02:00
|
|
|
preFixup = ''
|
2013-12-26 06:48:17 +01:00
|
|
|
wrapProgram $out/bin/midori \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2014-04-17 10:25:20 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2013-12-26 06:48:17 +01:00
|
|
|
'';
|
2008-09-07 14:58:56 +02:00
|
|
|
}
|