Added WebKit; made it install webkit-program-GtkLauncher (originally it is just GtkLauncher) - minimalistic http/file-only browser which passes Acid3
svn path=/nixpkgs/trunk/; revision=12210
This commit is contained in:
parent
add294e64b
commit
66b3c35d9c
2 changed files with 47 additions and 0 deletions
36
pkgs/development/libraries/webkit/default.nix
Normal file
36
pkgs/development/libraries/webkit/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
args : with args;
|
||||
let version = lib.getAttr ["version"] "r34824" args; in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "http://nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2";
|
||||
sha256 = "10h295niz1np0rfjqchvjda8kdxf9z0qrk2r3x8xbrbva1y6dfn6";
|
||||
};
|
||||
|
||||
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];
|
||||
|
||||
configureCommand = "./autogen.sh ";
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be specified separately */
|
||||
phaseNames = ["doConfigure" (doPatchShebangs ".") "doReplaceUsrBin" "doMakeInstall" "doAddPrograms"];
|
||||
|
||||
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"];
|
||||
|
||||
name = "webkit-" + version;
|
||||
meta = {
|
||||
description = "WebKit - a fast and correct HTML renderer";
|
||||
};
|
||||
}
|
|
@ -3380,6 +3380,17 @@ let pkgs = rec {
|
|||
inherit postgresql mysql sqlite;
|
||||
});
|
||||
|
||||
webkit = builderDefsPackage (import ../development/libraries/webkit) {
|
||||
inherit (gtkLibs) gtk atk pango;
|
||||
inherit freetype fontconfig gettext gperf curl
|
||||
libjpeg libtiff libpng libxml2 libxslt sqlite
|
||||
icu cairo perl intltool automake libtool
|
||||
pkgconfig;
|
||||
autoconf = autoconfLatest;
|
||||
flex = flex2535;
|
||||
bison = bison23;
|
||||
} null;
|
||||
|
||||
wxGTK = wxGTK26;
|
||||
|
||||
wxGTK26 = import ../development/libraries/wxGTK-2.6 {
|
||||
|
|
Loading…
Reference in a new issue