2013-12-26 06:48:17 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
2015-01-06 20:36:08 +01:00
|
|
|
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
2015-08-02 23:31:07 +02:00
|
|
|
, glib_networking, gsettings_desktop_schemas, libsoup
|
2013-12-26 06:48:17 +01:00
|
|
|
}:
|
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";
|
2014-12-18 10:47:59 +01:00
|
|
|
homepage = "http://midori-browser.org";
|
2013-12-26 06:48:17 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-03-13 09:08:15 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
2008-09-07 14:58:56 +02:00
|
|
|
};
|
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
src = fetchurl {
|
2014-12-18 10:47:59 +01: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 10:53:03 +02:00
|
|
|
sha256 = "10ckm98rfqfbwr84b8mc1ssgj84wjgkr4dadvx2l7c64sigi66dg";
|
2013-12-26 06:48:17 +01:00
|
|
|
};
|
2008-09-07 14:58:56 +02:00
|
|
|
|
2014-05-06 17:50:20 +02:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2013-12-26 06:48:17 +01:00
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig intltool vala makeWrapper
|
2015-11-30 23:25:19 +01:00
|
|
|
webkitgtk librsvg libnotify sqlite gsettings_desktop_schemas
|
2015-08-02 23:31:07 +02:00
|
|
|
(libsoup.override {gnomeSupport = true;})
|
2013-12-26 06:48:17 +01:00
|
|
|
];
|
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
|
|
|
}
|