nixpkgs/pkgs/development/libraries/webkit/default.nix
Michael Raskin 128d64427e Fix escaping bug
svn path=/nixpkgs/trunk/; revision=16507
2009-07-29 18:51:35 +00:00

52 lines
1.6 KiB
Nix

args : with args;
let version = lib.attrByPath ["version"] "r46507" args; in
rec {
src = fetchurl {
url = "http://nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2";
sha256 = "18l435dgg3spgz10z05gw6cyxcm71y01l3qxy38ik43brws1hsvy";
};
buildInputs = [gtk atk cairo curl fontconfig freetype
gettext libjpeg libpng libtiff libxml2 libxslt pango
sqlite icu gperf bison flex autoconf automake libtool
perl intltool pkgconfig libsoup gtkdoc libXt libproxy
enchant gstreamer gstPluginsBase gstFfmpeg
];
configureCommand = "./autogen.sh ";
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["setVars" "fixTypos" "paranoidFixComments" "doConfigure" (doPatchShebangs ".")
"doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
setVars = fullDepEntry (''
export NIX_LDFLAGS="$NIX_LDFLAGS -lXt"
'') ["minInit"];
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 (''
for i in Programs/.libs/*; do
cp $i $out/bin/webkit-program-$(basename $i)
done
'') ["minInit" "doMake" "defEnsureDir"];
paranoidFixComments = fullDepEntry (''
sed -re 's@( |^)//.*@/* & */@' -i $(find . -name '*.c' -o -name '*.h')
'') ["minInit" "doUnpack"];
fixTypos = fullDepEntry (''
sed -e 's@WebCore/workers/DedicatedWorkerThread.h$@& \\@' -i WebCore/GNUMakefile
'') ["minInit" "doUnpack"];
name = "webkit-" + version;
meta = {
description = "WebKit - a fast and correct HTML renderer";
};
}