nixpkgs/pkgs/applications/networking/browsers/uzbl/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

2014-03-30 03:52:36 +02:00
{ stdenv, fetchurl, pkgconfig, python, makeWrapper
, webkit, glib_networking, gsettings_desktop_schemas
}:
2014-03-30 03:52:36 +02:00
stdenv.mkDerivation rec {
name = "uzbl-20120514";
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 ];
};
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";
};
2014-03-30 03:52:36 +02:00
preConfigure = ''
makeFlags="$makeFlags PREFIX=$out"
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
'';
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"
'';
2014-03-30 03:52:36 +02:00
nativeBuildInputs = [ pkgconfig python makeWrapper ];
2014-03-30 03:52:36 +02:00
buildInputs = [ webkit ];
}