2008-06-29 09:02:11 +02:00
|
|
|
args : with args;
|
2009-07-15 22:38:05 +02:00
|
|
|
let version = lib.attrByPath ["version"] "r45934" args; in
|
2008-06-29 09:02:11 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2";
|
2009-07-15 22:38:05 +02:00
|
|
|
sha256 = "0cc169ndbxmcdrhrjbll9jnxmfwyrbvwxzf95q1hjcn9v9naq0ck";
|
2008-06-29 09:02:11 +02: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 13:20:26 +02:00
|
|
|
perl intltool pkgconfig libsoup gtkdoc libXt libproxy
|
|
|
|
enchant gstreamer gstPluginsBase gstFfmpeg
|
|
|
|
];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
|
|
|
configureCommand = "./autogen.sh ";
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2009-06-04 13:20:26 +02:00
|
|
|
phaseNames = ["setVars" "paranoidFixComments" "doConfigure" (doPatchShebangs ".")
|
|
|
|
"doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
|
|
|
|
|
|
|
|
setVars = fullDepEntry (''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXt"
|
|
|
|
'') ["minInit"];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
doReplaceUsrBin = fullDepEntry (''
|
2008-06-29 09:02:11 +02: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-20 01:25:58 +02:00
|
|
|
doAddPrograms = fullDepEntry (''
|
2008-06-29 09:02:11 +02:00
|
|
|
for i in Programs/.libs/*; do
|
|
|
|
cp $i $out/bin/webkit-program-$(basename $i)
|
|
|
|
done
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir"];
|
|
|
|
|
2009-06-04 13:20:26 +02:00
|
|
|
paranoidFixComments = fullDepEntry (''
|
|
|
|
sed -re 's@( |^)//.*@/* & */@' -i $(find . -name '*.c' -o -name '*.h')
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2008-06-29 09:02:11 +02:00
|
|
|
name = "webkit-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "WebKit - a fast and correct HTML renderer";
|
|
|
|
};
|
|
|
|
}
|