2008-06-29 07:02:11 +00:00
|
|
|
args : with args;
|
2009-08-02 18:09:54 +00:00
|
|
|
let version = lib.attrByPath ["version"] "r46684" args; in
|
2008-06-29 07:02:11 +00:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2";
|
2009-08-02 18:09:54 +00:00
|
|
|
sha256 = "0rvmz1w83slkp8khvnq8akjbd2nfwz4miq6fg0d6nkxd83d9i7d3";
|
2008-06-29 07:02:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [gtk atk cairo curl fontconfig freetype
|
|
|
|
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
|
2009-08-03 05:11:30 +00:00
|
|
|
enchant
|
|
|
|
];
|
|
|
|
|
|
|
|
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-filters"
|
|
|
|
"--enable-web-sockets"
|
2009-08-02 20:20:42 +00:00
|
|
|
# Fails the build..
|
|
|
|
# "--enable-shared-workers"
|
2009-08-02 19:45:59 +00:00
|
|
|
"--enable-wml"
|
2009-08-02 18:25:20 +00:00
|
|
|
];
|
2008-06-29 07:02:11 +00:00
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2009-08-02 18:09:54 +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 09:49:36 +00:00
|
|
|
for i in Programs/.libs/* Programs/*; do
|
2008-06-29 07:02:11 +00:00
|
|
|
cp $i $out/bin/webkit-program-$(basename $i)
|
|
|
|
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"];
|
|
|
|
|
2008-06-29 07:02:11 +00:00
|
|
|
name = "webkit-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "WebKit - a fast and correct HTML renderer";
|
|
|
|
};
|
2009-08-03 06:17:38 +00:00
|
|
|
passthru = {
|
|
|
|
inherit gstreamer gstPluginsBase gstPluginsGood gstFfmpeg;
|
|
|
|
};
|
2008-06-29 07:02:11 +00:00
|
|
|
}
|