ab15a62c68
Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala, makeWrapper
|
|
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
|
, glib_networking, gsettings_desktop_schemas, libsoup
|
|
}:
|
|
|
|
let
|
|
version = "0.5.8";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "midori-${version}";
|
|
|
|
meta = {
|
|
description = "Lightweight WebKitGTK+ web browser";
|
|
homepage = "http://midori-browser.org";
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
|
};
|
|
|
|
src = fetchurl {
|
|
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";
|
|
sha256 = "10ckm98rfqfbwr84b8mc1ssgj84wjgkr4dadvx2l7c64sigi66dg";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildInputs = [
|
|
cmake pkgconfig intltool vala makeWrapper
|
|
webkitgtk librsvg libnotify sqlite gsettings_desktop_schemas
|
|
(libsoup.override {gnomeSupport = true;})
|
|
];
|
|
|
|
cmakeFlags = ''
|
|
-DHALF_BRO_INCOM_WEBKIT2=ON
|
|
-DUSE_ZEITGEIST=OFF
|
|
'';
|
|
|
|
NIX_LDFLAGS="-lX11";
|
|
|
|
preFixup = ''
|
|
wrapProgram $out/bin/midori \
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules" \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
'';
|
|
}
|