2008-06-29 09:02:11 +02:00
|
|
|
args : with args;
|
2009-08-24 00:10:08 +02:00
|
|
|
let
|
2013-03-06 18:14:18 +01:00
|
|
|
s = import ./src-for-default.nix; # 1.8.3 needs newer gtk3, wait for x-updates
|
2009-08-24 00:10:08 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
buildInputs = with xlibs; [
|
|
|
|
pkgconfig libtool intltool autoconf automake gperf bison flex
|
|
|
|
gtk3 gtk2 glib atk cairo pango fontconfig freetype libsoup gtkdoc
|
|
|
|
libjpeg libpng libtiff libxml2 libxslt sqlite icu curl
|
|
|
|
which libproxy geoclue enchant python ruby perl
|
|
|
|
mesa libXt libXrender renderproto libXcomposite compositeproto
|
|
|
|
libXdamage damageproto kbproto
|
2009-08-03 07:11:30 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2012-03-14 23:44:52 +01:00
|
|
|
gstreamer gst_plugins_base gst_ffmpeg gst_plugins_good
|
2009-06-04 13:20:26 +02:00
|
|
|
];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
2009-08-02 20:25:20 +02:00
|
|
|
configureFlags = [
|
2013-03-06 18:14:18 +01:00
|
|
|
# "--enable-3D-transforms" # no longer recognized
|
2009-08-02 20:25:20 +02:00
|
|
|
"--enable-web-sockets"
|
2010-08-12 15:56:57 +02:00
|
|
|
"--enable-web-timing"
|
2013-03-06 18:14:18 +01:00
|
|
|
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=55294
|
|
|
|
"--enable-image-resizer"
|
|
|
|
|
2011-01-02 14:23:59 +01:00
|
|
|
"--enable-geolocation"
|
|
|
|
|
|
|
|
# Not implemented?
|
2013-03-06 18:14:18 +01:00
|
|
|
# "--enable-web-audio"
|
2011-01-02 14:23:59 +01:00
|
|
|
|
2010-08-12 15:56:57 +02:00
|
|
|
"--enable-mathml"
|
2010-06-17 12:13:43 +02:00
|
|
|
|
2011-05-16 04:45:55 +02:00
|
|
|
#"--enable-wml"
|
2013-03-06 18:14:18 +01:00
|
|
|
|
2010-09-22 20:31:01 +02:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=45110
|
2012-03-21 11:47:00 +01:00
|
|
|
#"--enable-indexed-database"
|
2010-06-17 12:13:43 +02:00
|
|
|
|
2012-03-21 11:47:00 +01:00
|
|
|
# Doesn't work in release...
|
|
|
|
#"--enable-xhtmlmp"
|
2010-08-12 15:56:57 +02:00
|
|
|
|
|
|
|
# "--enable-input-speech"
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
#"--enable-file-writer" # no longer recognized
|
2011-04-13 11:34:26 +02:00
|
|
|
"--enable-blob"
|
2010-06-17 12:13:43 +02:00
|
|
|
|
2011-04-26 09:15:50 +02:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=59430
|
2013-03-06 18:14:18 +01:00
|
|
|
# "--enable-directory-upload"
|
2011-04-13 11:34:26 +02:00
|
|
|
|
2011-04-26 09:15:50 +02:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=58443
|
2013-03-06 18:14:18 +01:00
|
|
|
# "--enable-file-system"
|
|
|
|
|
|
|
|
"--enable-dependency-tracking" # to fix parallel building
|
2009-08-02 20:25:20 +02:00
|
|
|
];
|
2008-06-29 09:02:11 +02:00
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
# instead of enableParallelBuilding = true;
|
|
|
|
makeFlags = "-j$NIX_BUILD_CORES";
|
|
|
|
|
2008-06-29 09:02:11 +02:00
|
|
|
/* doConfigure should be specified separately */
|
2013-03-06 18:14:18 +01:00
|
|
|
phaseNames = ["doPatch" "fixConfigure" /* "paranoidFixComments" */ "doConfigure" (doPatchShebangs ".")
|
2009-06-04 13:20:26 +02:00
|
|
|
"doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
|
|
|
|
|
2013-02-28 14:06:23 +01:00
|
|
|
patches = [ ./bison26.patch ]; # http://trac.webkit.org/changeset/124099
|
|
|
|
patchFlags = "-p2";
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
#doCheck = true; # tests still have problems
|
|
|
|
|
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 (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $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"];
|
|
|
|
|
2012-07-16 06:16:03 +02:00
|
|
|
# See http://archive.linuxfromscratch.org/mail-archives/blfs-dev/2012-April/022893.html
|
|
|
|
fixConfigure = fullDepEntry (''
|
|
|
|
sed -i -e 's/=GSTREAMER_0_10_REQUIRED_VERSION/=\$GSTREAMER_0_10_REQUIRED_VERSION/' \
|
|
|
|
-e 's/=GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION/=\$GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION/' \
|
|
|
|
configure{,.ac}
|
|
|
|
'') ["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 = {
|
2013-02-21 19:39:51 +01:00
|
|
|
inherit gstreamer gst_plugins_base gst_plugins_good gst_ffmpeg libsoup;
|
2009-08-03 08:17:38 +02:00
|
|
|
};
|
2008-06-29 09:02:11 +02:00
|
|
|
}
|