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
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "midori-0.5.6";
|
|
|
|
|
|
|
|
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 {
|
|
|
|
url = "${meta.homepage}/downloads/midori_0.5.6_all_.tar.bz2";
|
|
|
|
sha256 = "0jpj8cw0dzamzylzslayamjhv0is0xd99dyaql4nyxrkk5fipgn5";
|
|
|
|
};
|
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
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/midori \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2013-12-26 16:16:57 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gsettings_desktop_schemas}/share"
|
2013-12-26 05:48:17 +00:00
|
|
|
'';
|
2008-09-07 13:58:56 +01:00
|
|
|
}
|