2012-03-29 12:30:47 +02:00
|
|
|
|
|
|
|
args : with args;
|
|
|
|
let
|
|
|
|
s = import ./src-for-gtk2.nix;
|
|
|
|
version = lib.attrByPath ["version"] s.version args;
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
|
|
|
};
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
buildInputs = with xlibs; [
|
|
|
|
pkgconfig libtool intltool autoconf automake gperf bison flex
|
|
|
|
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
|
2012-03-29 12:30:47 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gstreamer gst_plugins_base gst_ffmpeg gst_plugins_good
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
2013-03-06 18:14:18 +01:00
|
|
|
"--with-gtk=2.0"
|
|
|
|
|
|
|
|
# "--enable-3D-transforms" # no longer recognized
|
2012-03-29 12:30:47 +02:00
|
|
|
"--enable-web-sockets"
|
|
|
|
"--enable-web-timing"
|
2013-03-06 18:14:18 +01:00
|
|
|
|
2012-03-29 12:30:47 +02:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=55294
|
2013-03-06 18:14:18 +01:00
|
|
|
"--enable-image-resizer"
|
2012-03-29 12:30:47 +02:00
|
|
|
|
|
|
|
"--enable-geolocation"
|
|
|
|
|
|
|
|
# Not implemented?
|
|
|
|
# "--enable-web-audio"
|
|
|
|
|
|
|
|
"--enable-mathml"
|
|
|
|
|
|
|
|
#"--enable-wml"
|
2013-03-06 18:14:18 +01:00
|
|
|
|
2012-03-29 12:30:47 +02:00
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=45110
|
2013-03-06 18:14:18 +01:00
|
|
|
#"--enable-indexed-database"
|
2012-03-29 12:30:47 +02:00
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
# Doesn't work in release...
|
|
|
|
#"--enable-xhtmlmp"
|
2012-03-29 12:30:47 +02:00
|
|
|
|
|
|
|
# "--enable-input-speech"
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
#"--enable-file-writer" # no longer recognized
|
2012-03-29 12:30:47 +02:00
|
|
|
"--enable-blob"
|
|
|
|
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=59430
|
|
|
|
# "--enable-directory-upload"
|
|
|
|
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=58443
|
|
|
|
# "--enable-file-system"
|
2013-03-06 18:14:18 +01:00
|
|
|
|
|
|
|
"--enable-dependency-tracking" # to fix parallel building
|
2012-03-29 12:30:47 +02:00
|
|
|
];
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
# instead of enableParallelBuilding = true;
|
|
|
|
makeFlags = "-j$NIX_BUILD_CORES";
|
|
|
|
|
2012-03-29 12:30:47 +02:00
|
|
|
/* doConfigure should be specified separately */
|
2013-03-06 18:14:18 +01:00
|
|
|
phaseNames = ["doPatch" "fixConfigure" /* "paranoidFixComments" */ "doConfigure" (doPatchShebangs ".")
|
2012-03-29 12:30:47 +02:00
|
|
|
"doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
|
|
|
|
|
2013-03-06 18:14:18 +01:00
|
|
|
patches = [ ./bison26.patch ]; # http://trac.webkit.org/changeset/124099
|
|
|
|
patchFlags = "-p2";
|
|
|
|
|
|
|
|
#doCheck = true; # tests still have problems
|
2012-03-29 12:30:47 +02:00
|
|
|
|
|
|
|
doReplaceUsrBin = fullDepEntry (''
|
|
|
|
for i in $(find . -name '*.pl') $(find . -name '*.pm'); do
|
|
|
|
sed -e 's@/usr/bin/gcc@gcc@' -i $i
|
|
|
|
done
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
|
|
|
doAddPrograms = fullDepEntry (''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
for i in Programs/.libs/* Programs/*; do
|
|
|
|
cp $i $out/bin/webkit-program-$(basename $i) || true
|
|
|
|
done
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir"];
|
|
|
|
|
|
|
|
paranoidFixComments = fullDepEntry (''
|
|
|
|
sed -re 's@( |^)//.*@/* & */@' -i $(find . -name '*.c' -o -name '*.h')
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2013-03-06 18:14:18 +01: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"];
|
|
|
|
|
2012-03-29 12:30:47 +02:00
|
|
|
name = s.name;
|
|
|
|
meta = {
|
|
|
|
description = "WebKit - a fast and correct HTML renderer";
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
};
|
|
|
|
passthru = {
|
2013-03-06 18:14:18 +01:00
|
|
|
inherit gstreamer gst_plugins_base gst_plugins_good gst_ffmpeg libsoup;
|
2012-03-29 12:30:47 +02:00
|
|
|
};
|
|
|
|
}
|