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