nixpkgs/pkgs/applications/networking/browsers/midori/default.nix
Luca Bruno 6f61f7dc0d midori: fix gsettings schemas
Could not test it because it does not compile for other reasons.
2014-04-17 13:42:50 +02:00

41 lines
1.0 KiB
Nix

{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
, gtk3, webkitgtk, librsvg, libnotify
, glib_networking, gsettings_desktop_schemas
}:
let
version = "0.5.7";
in
stdenv.mkDerivation rec {
name = "midori-${version}";
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 ];
};
src = fetchurl {
url = "${meta.homepage}/downloads/midori_${version}_all_.tar.bz2";
sha256 = "0k8bppicgzm97g5x8ahvpw9wvg2f1mq093qp8biwr858m0mbnx98";
};
buildInputs = [
cmake pkgconfig intltool vala makeWrapper
webkitgtk librsvg libnotify
];
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"
'';
}