2014-04-20 15:02:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, makeWrapper, pygtk
|
2014-03-30 01:52:36 +00:00
|
|
|
, webkit, glib_networking, gsettings_desktop_schemas
|
|
|
|
}:
|
2009-10-06 05:58:56 +00:00
|
|
|
|
2014-03-30 01:52:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "uzbl-20120514";
|
2012-03-21 19:14:34 +00:00
|
|
|
|
2014-03-30 01:52:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tiny externally controllable webkit browser";
|
|
|
|
homepage = "http://uzbl.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
};
|
2009-06-19 08:05:21 +00:00
|
|
|
|
2014-03-30 01:52:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/uzbl/uzbl/archive/2012.05.14.tar.gz";
|
|
|
|
sha256 = "1flpf0rg0c3n9bjifr37zxljn9yxslg8vkll7ghkm341x76cbkwn";
|
|
|
|
};
|
2009-06-19 08:05:21 +00:00
|
|
|
|
2014-03-30 01:52:36 +00:00
|
|
|
preConfigure = ''
|
|
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
|
|
|
|
'';
|
2009-08-24 13:05:19 +00:00
|
|
|
|
2014-04-20 15:02:52 +00:00
|
|
|
preFixup = ''
|
|
|
|
for f in $out/bin/*; do
|
|
|
|
wrapProgram $f \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
|
|
|
done
|
2014-03-30 01:52:36 +00:00
|
|
|
'';
|
2009-08-03 05:11:30 +00:00
|
|
|
|
2014-03-30 01:52:36 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig python makeWrapper ];
|
2009-06-19 08:05:21 +00:00
|
|
|
|
2014-05-12 08:32:46 +00:00
|
|
|
buildInputs = [ gsettings_desktop_schemas webkit pygtk ];
|
2009-06-19 08:05:21 +00:00
|
|
|
}
|