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
|
2015-08-02 22:31:07 +01:00
|
|
|
, glib_networking, gsettings_desktop_schemas, libsoup
|
2013-12-26 05:48:17 +00:00
|
|
|
}:
|
2008-09-07 13:58:56 +01:00
|
|
|
|
2014-01-23 21:28:30 +00:00
|
|
|
let
|
2014-04-29 09:53:03 +01:00
|
|
|
version = "0.5.8";
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight WebKitGTK+ web browser";
|
2014-12-18 09:47:59 +00:00
|
|
|
homepage = "http://midori-browser.org";
|
2013-12-26 05:48:17 +00:00
|
|
|
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-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";
|
2014-04-29 09:53:03 +01:00
|
|
|
sha256 = "10ckm98rfqfbwr84b8mc1ssgj84wjgkr4dadvx2l7c64sigi66dg";
|
2013-12-26 05:48:17 +00:00
|
|
|
};
|
2008-09-07 13:58:56 +01:00
|
|
|
|
2014-05-06 16:50:20 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2013-12-26 05:48:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig intltool vala makeWrapper
|
2015-01-06 19:36:08 +00:00
|
|
|
webkitgtk librsvg libnotify sqlite
|
2015-08-02 22:31:07 +01:00
|
|
|
(libsoup.override {gnomeSupport = true;})
|
2013-12-26 05:48:17 +00:00
|
|
|
];
|
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
|
|
|
}
|