nixpkgs/pkgs/applications/networking/browsers/midori/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
2015-01-06 19:36:08 +00:00
, gtk3, webkitgtk, librsvg, libnotify, sqlite
, glib_networking, gsettings_desktop_schemas, libsoup
}:
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
stdenv.mkDerivation rec {
2014-01-23 21:28:30 +00:00
name = "midori-${version}";
meta = {
description = "Lightweight WebKitGTK+ web browser";
2014-12-18 09:47:59 +00:00
homepage = "http://midori-browser.org";
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ raskin iyzsong ];
};
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";
};
2014-05-06 16:50:20 +01:00
sourceRoot = ".";
buildInputs = [
cmake pkgconfig intltool vala makeWrapper
2015-01-06 19:36:08 +00:00
webkitgtk librsvg libnotify sqlite
(libsoup.override {gnomeSupport = true;})
];
cmakeFlags = ''
-DHALF_BRO_INCOM_WEBKIT2=ON
-DUSE_ZEITGEIST=OFF
'';
preFixup = ''
wrapProgram $out/bin/midori \
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
}