2014-03-30 03:52:36 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, makeWrapper
|
|
|
|
, webkit, glib_networking, gsettings_desktop_schemas
|
|
|
|
}:
|
2009-10-06 07:58:56 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "uzbl-20120514";
|
2012-03-21 20:14:34 +01:00
|
|
|
|
2014-03-30 03:52:36 +02: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 10:05:21 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
src = fetchurl {
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/uzbl/uzbl/archive/2012.05.14.tar.gz";
|
|
|
|
sha256 = "1flpf0rg0c3n9bjifr37zxljn9yxslg8vkll7ghkm341x76cbkwn";
|
|
|
|
};
|
2009-06-19 10:05:21 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
preConfigure = ''
|
|
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
|
|
|
|
'';
|
2009-08-24 15:05:19 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/uzbl-core \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share:$out/share"
|
|
|
|
'';
|
2009-08-03 07:11:30 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig python makeWrapper ];
|
2009-06-19 10:05:21 +02:00
|
|
|
|
2014-03-30 03:52:36 +02:00
|
|
|
buildInputs = [ webkit ];
|
2009-06-19 10:05:21 +02:00
|
|
|
}
|