2008-09-07 13:58:56 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
|
|
|
doPatchShebangs = args.doPatchShebangs;
|
|
|
|
makeManyWrappers = args.makeManyWrappers;
|
|
|
|
|
2012-03-25 12:22:32 +01:00
|
|
|
version = "0.4";
|
|
|
|
release = "4";
|
2008-09-07 13:58:56 +01:00
|
|
|
buildInputs = with args; [
|
2012-03-25 12:22:32 +01:00
|
|
|
intltool python imagemagick gtk3 glib webkit libxml2
|
2008-09-07 13:58:56 +01:00
|
|
|
gtksourceview pkgconfig which gettext makeWrapper
|
2010-08-24 14:58:57 +01:00
|
|
|
file libidn sqlite docutils libnotify libsoup vala
|
|
|
|
kbproto xproto scrnsaverproto libXScrnSaver dbus_glib
|
2013-08-10 18:00:14 +01:00
|
|
|
glib_networking
|
2008-09-07 13:58:56 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2010-08-24 14:58:57 +01:00
|
|
|
url = "http://archive.xfce.org/src/apps/midori/${version}/midori-${version}.${release}.tar.bz2";
|
2012-03-25 12:22:32 +01:00
|
|
|
sha256 = "fadd43f76c1c9f6a16483e60a804e58fb6817c6a595b1acdd59bcbdd7b35bca2";
|
2008-09-07 13:58:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
2012-03-25 12:22:32 +01:00
|
|
|
configureFlags = ["--enable-gtk3"];
|
2008-09-07 13:58:56 +01:00
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2012-03-25 12:22:32 +01:00
|
|
|
phaseNames = ["doUnpack" "setVars" "shebangsHere" "doConfigure"
|
2009-08-24 15:24:47 +01:00
|
|
|
"doMakeInstall" "shebangsInstalled" "wrapWK"
|
|
|
|
];
|
2012-03-25 12:22:32 +01:00
|
|
|
|
|
|
|
setVars = args.fullDepEntry ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lnotify"
|
|
|
|
'' [];
|
2008-09-07 13:58:56 +01:00
|
|
|
|
2009-08-24 15:24:47 +01:00
|
|
|
shebangsHere = (doPatchShebangs ".");
|
|
|
|
shebangsInstalled = (doPatchShebangs "$out/bin");
|
2013-08-10 18:00:14 +01:00
|
|
|
wrapWK = (makeManyWrappers "$out/bin/*"
|
|
|
|
''
|
|
|
|
--set WEBKIT_IGNORE_SSL_ERRORS 1 \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${args.glib_networking}/lib/gio/modules"
|
|
|
|
'');
|
2009-08-24 15:24:47 +01:00
|
|
|
|
2010-08-24 14:58:57 +01:00
|
|
|
name = "midori-${version}.${release}";
|
2008-09-07 13:58:56 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Light WebKit-based web browser with GTK GUI";
|
2009-09-30 07:31:13 +01:00
|
|
|
maintainers = [args.lib.maintainers.raskin];
|
|
|
|
platforms = with args.lib.platforms;
|
|
|
|
linux;
|
2008-09-07 13:58:56 +01:00
|
|
|
};
|
|
|
|
}
|