2008-06-29 07:02:11 +00:00
|
|
|
args : with args;
|
2009-08-23 22:10:08 +00:00
|
|
|
let
|
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
version = lib.attrByPath ["version"] s.version args;
|
|
|
|
in
|
2008-06-29 07:02:11 +00:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2009-08-23 22:10:08 +00:00
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
2008-06-29 07:02:11 +00:00
|
|
|
};
|
|
|
|
|
2010-02-15 08:42:45 +00:00
|
|
|
buildInputs = [gtk glib atk cairo curl fontconfig freetype
|
2008-06-29 07:02:11 +00:00
|
|
|
gettext libjpeg libpng libtiff libxml2 libxslt pango
|
|
|
|
sqlite icu gperf bison flex autoconf automake libtool
|
2009-06-04 11:20:26 +00:00
|
|
|
perl intltool pkgconfig libsoup gtkdoc libXt libproxy
|
2011-01-02 13:23:59 +00:00
|
|
|
enchant python ruby which renderproto libXrender geoclue
|
2009-08-03 05:11:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gstreamer gstPluginsBase gstFfmpeg gstPluginsGood
|
2009-06-04 11:20:26 +00:00
|
|
|
];
|
2008-06-29 07:02:11 +00:00
|
|
|
|
|
|
|
configureCommand = "./autogen.sh ";
|
2009-08-02 18:25:20 +00:00
|
|
|
configureFlags = [
|
2009-08-02 19:31:36 +00:00
|
|
|
"--enable-3D-transforms"
|
2009-08-02 18:25:20 +00:00
|
|
|
"--enable-web-sockets"
|
2010-08-12 13:56:57 +00:00
|
|
|
"--enable-web-timing"
|
2011-04-13 09:34:26 +00:00
|
|
|
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=56718
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=55294
|
|
|
|
#"--enable-image-resizer"
|
2010-07-08 15:28:34 +00:00
|
|
|
|
2011-01-02 13:23:59 +00:00
|
|
|
"--enable-geolocation"
|
|
|
|
|
|
|
|
# Not implemented?
|
|
|
|
# "--enable-web-audio"
|
|
|
|
|
2010-08-12 13:56:57 +00:00
|
|
|
"--enable-mathml"
|
2010-06-17 10:13:43 +00:00
|
|
|
|
2011-01-02 13:23:59 +00:00
|
|
|
"--enable-wml"
|
2010-06-17 10:13:43 +00:00
|
|
|
|
2010-09-22 18:31:01 +00:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=45110
|
2010-08-12 13:56:57 +00:00
|
|
|
# "--enable-indexed-database"
|
2010-06-17 10:13:43 +00:00
|
|
|
|
2010-11-02 18:38:09 +00:00
|
|
|
# Related bug is marked as closed, but seems to persist
|
2011-01-02 13:23:59 +00:00
|
|
|
"--enable-xhtmlmp"
|
2010-08-12 13:56:57 +00:00
|
|
|
|
|
|
|
# "--enable-input-speech"
|
|
|
|
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=43878
|
2011-01-02 13:23:59 +00:00
|
|
|
# Related bug FIXED
|
|
|
|
"--enable-file-writer"
|
2011-04-13 09:34:26 +00:00
|
|
|
"--enable-blob"
|
2010-06-17 10:13:43 +00:00
|
|
|
|
2010-08-12 13:56:57 +00:00
|
|
|
# May be or not be triggering https://bugs.webkit.org/show_bug.cgi?id=43878
|
2011-04-13 09:34:26 +00:00
|
|
|
# Allegedly FIXED
|
2010-08-12 22:05:04 +00:00
|
|
|
"--enable-directory-upload"
|
2011-04-13 09:34:26 +00:00
|
|
|
|
|
|
|
# Maybe related: https://bugs.webkit.org/show_bug.cgi?id=57925
|
|
|
|
# "--enable-file-system"
|
2009-08-02 18:25:20 +00:00
|
|
|
];
|
2008-06-29 07:02:11 +00:00
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2010-07-07 03:34:53 +00:00
|
|
|
phaseNames = ["setVars" /* "paranoidFixComments" */ "doConfigure" (doPatchShebangs ".")
|
2009-06-04 11:20:26 +00:00
|
|
|
"doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
|
|
|
|
|
|
|
|
setVars = fullDepEntry (''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXt"
|
|
|
|
'') ["minInit"];
|
2008-06-29 07:02:11 +00:00
|
|
|
|
2009-05-19 23:25:58 +00:00
|
|
|
doReplaceUsrBin = fullDepEntry (''
|
2008-06-29 07:02:11 +00:00
|
|
|
for i in $(find . -name '*.pl') $(find . -name '*.pm'); do
|
|
|
|
sed -e 's@/usr/bin/gcc@gcc@' -i $i
|
|
|
|
done
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-05-19 23:25:58 +00:00
|
|
|
doAddPrograms = fullDepEntry (''
|
2009-08-03 10:40:43 +00:00
|
|
|
ensureDir $out/bin
|
2009-08-03 09:49:36 +00:00
|
|
|
for i in Programs/.libs/* Programs/*; do
|
2009-08-03 10:40:43 +00:00
|
|
|
cp $i $out/bin/webkit-program-$(basename $i) || true
|
2008-06-29 07:02:11 +00:00
|
|
|
done
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir"];
|
|
|
|
|
2009-06-04 11:20:26 +00:00
|
|
|
paranoidFixComments = fullDepEntry (''
|
|
|
|
sed -re 's@( |^)//.*@/* & */@' -i $(find . -name '*.c' -o -name '*.h')
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-09-30 05:37:09 +00:00
|
|
|
name = s.name;
|
2008-06-29 07:02:11 +00:00
|
|
|
meta = {
|
|
|
|
description = "WebKit - a fast and correct HTML renderer";
|
2009-08-04 07:49:16 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2008-06-29 07:02:11 +00:00
|
|
|
};
|
2009-08-03 06:17:38 +00:00
|
|
|
passthru = {
|
|
|
|
inherit gstreamer gstPluginsBase gstPluginsGood gstFfmpeg;
|
|
|
|
};
|
2008-06-29 07:02:11 +00:00
|
|
|
}
|