nixpkgs/pkgs/applications/networking/browsers/uzbl/default.nix
Michael Raskin bdf2bb0bf5 Fix uzbl build, although in a bit hacky way
svn path=/nixpkgs/trunk/; revision=16832
2009-08-24 13:05:19 +00:00

44 lines
1.3 KiB
Nix

a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "2009.08.08" a;
buildInputs = with a; [
libsoup pkgconfig webkit gtk makeWrapper
];
in
rec {
src = fetchurl {
url = "http://github.com/Dieterbe/uzbl/tarball/${version}";
sha256 = "06f0ae1e34bc0b0f77feeba5f832cdc2349ac04cbc7a5a5b9e7e5ff086a9c497";
name = "uzbl-master-${version}.tar.gz";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["addInputs" "setVars" "doMakeInstall" "doWrap"];
setVars = a.noDepEntry (''
'');
doWrap = a.makeManyWrappers "$out/bin/uzbl"
''
--prefix GST_PLUGIN_PATH : ${a.webkit.gstreamer}/lib/gstreamer-* \
--prefix GST_PLUGIN_PATH : ${a.webkit.gstPluginsBase}/lib/gstreamer-* \
--prefix GST_PLUGIN_PATH : ${a.webkit.gstPluginsGood}/lib/gstreamer-* \
--prefix GST_PLUGIN_PATH : ${a.webkit.gstFfmpeg}/lib/gstreamer-*
'';
installFlags = "PREFIX=$out";
makeFlags = [
"CC='gcc ${a.glib}/lib/libglib-2.0.so ${a.glib}/lib/libgio-2.0.so ${a.glib}/lib/libgobject-2.0.so' "
];
name = "uzbl-" + version;
meta = {
description = "Tiny externally controllable webkit browser";
maintainers = [a.lib.maintainers.raskin];
};
}