2008-06-29 09:02:11 +02:00
|
|
|
args : with args;
|
2009-08-24 00:10:08 +02:00
|
|
|
let
|
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
version = lib.attrByPath ["version"] s.version args;
|
|
|
|
in
|
2008-06-29 09:02:11 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2009-08-24 00:10:08 +02:00
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
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
|
2009-08-03 07:11:30 +02:00
|
|
|
enchant
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gstreamer gstPluginsBase gstFfmpeg gstPluginsGood
|
2009-06-04 13:20:26 +02:00
|
|
|
];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
|
|
|
configureCommand = "./autogen.sh ";
|
2009-08-02 20:25:20 +02:00
|
|
|
configureFlags = [
|
2009-08-02 21:31:36 +02:00
|
|
|
"--enable-3D-transforms"
|
2009-08-02 20:25:20 +02:00
|
|
|
"--enable-filters"
|
|
|
|
"--enable-web-sockets"
|
2009-09-30 16:12:52 +02:00
|
|
|
# WML fails recent builds..
|
|
|
|
# "--enable-wml"
|
2009-08-02 20:25:20 +02:00
|
|
|
];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2009-08-02 20:09:54 +02:00
|
|
|
phaseNames = ["setVars" "paranoidFixComments" "doConfigure" (doPatchShebangs ".")
|
2009-06-04 13:20:26 +02:00
|
|
|
"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 (''
|
2009-08-03 12:40:43 +02:00
|
|
|
ensureDir $out/bin
|
2009-08-03 11:49:36 +02:00
|
|
|
for i in Programs/.libs/* Programs/*; do
|
2009-08-03 12:40:43 +02:00
|
|
|
cp $i $out/bin/webkit-program-$(basename $i) || true
|
2008-06-29 09:02:11 +02:00
|
|
|
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"];
|
|
|
|
|
2009-09-30 07:37:09 +02:00
|
|
|
name = s.name;
|
2008-06-29 09:02:11 +02:00
|
|
|
meta = {
|
|
|
|
description = "WebKit - a fast and correct HTML renderer";
|
2009-08-04 09:49:16 +02:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2008-06-29 09:02:11 +02:00
|
|
|
};
|
2009-08-03 08:17:38 +02:00
|
|
|
passthru = {
|
|
|
|
inherit gstreamer gstPluginsBase gstPluginsGood gstFfmpeg;
|
|
|
|
};
|
2008-06-29 09:02:11 +02:00
|
|
|
}
|