mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, python3, makeWrapper, pygtk
|
|
, webkit, glib_networking, gsettings_desktop_schemas, pythonPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "uzbl-v0.9.0";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tiny externally controllable webkit browser";
|
|
homepage = "http://uzbl.org/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ raskin dgonyeo ];
|
|
};
|
|
|
|
src = fetchurl {
|
|
name = "${name}.tar.gz";
|
|
url = "https://github.com/uzbl/uzbl/archive/v0.9.0.tar.gz";
|
|
sha256 = "0iskhv653fdm5raiidimh9fzlsw28zjqx7b5n3fl1wgbj6yz074k";
|
|
};
|
|
|
|
preConfigure = ''
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
|
|
mkdir -p $out/lib/python3.4/site-packages/
|
|
export PYTHONPATH=$PYTHONPATH:$out/lib/python3.4/site-packages/
|
|
'';
|
|
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig python3 makeWrapper ];
|
|
|
|
buildInputs = [ gsettings_desktop_schemas webkit pygtk pythonPackages.six ];
|
|
}
|