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
|
|
|
|
2013-12-26 06:48:17 +01: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 14:58:56 +02:00
|
|
|
};
|
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/downloads/midori_0.5.6_all_.tar.bz2";
|
|
|
|
sha256 = "0jpj8cw0dzamzylzslayamjhv0is0xd99dyaql4nyxrkk5fipgn5";
|
|
|
|
};
|
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 = ''
|
|
|
|
-DUSE_GTK3=1
|
|
|
|
-DUSE_ZEITGEIST=OFF
|
|
|
|
'';
|
2009-08-24 16:24:47 +02:00
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/midori \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2013-12-26 17:16:57 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gsettings_desktop_schemas}/share"
|
2013-12-26 06:48:17 +01:00
|
|
|
'';
|
2008-09-07 14:58:56 +02:00
|
|
|
}
|