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

46 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, python3, makeWrapper
2019-03-05 16:40:00 +00:00
, webkitgtk, glib-networking, gsettings-desktop-schemas, python2Packages
2014-03-30 02:52:36 +01:00
}:
2016-07-19 14:06:10 +01:00
# This package needs python3 during buildtime,
# but Python 2 + packages during runtime.
2014-03-30 02:52:36 +01:00
stdenv.mkDerivation rec {
2018-05-28 13:59:57 +01:00
name = "uzbl-${version}";
version = "0.9.0";
2014-03-30 02:52:36 +01:00
meta = with stdenv.lib; {
description = "Tiny externally controllable webkit browser";
homepage = "http://uzbl.org/";
license = licenses.gpl3;
platforms = platforms.linux;
2016-03-02 04:14:25 +00:00
maintainers = with maintainers; [ raskin dgonyeo ];
2014-03-30 02:52:36 +01:00
};
2014-03-30 02:52:36 +01:00
src = fetchurl {
2018-05-28 13:59:57 +01:00
name = "uzbl-v${version}.tar.gz";
url = "https://github.com/uzbl/uzbl/archive/v${version}.tar.gz";
2016-03-02 04:14:25 +00:00
sha256 = "0iskhv653fdm5raiidimh9fzlsw28zjqx7b5n3fl1wgbj6yz074k";
2014-03-30 02:52:36 +01:00
};
2014-03-30 02:52:36 +01:00
preConfigure = ''
makeFlags="$makeFlags PREFIX=$out"
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
2016-07-19 14:06:10 +01:00
mkdir -p $out/${python3.sitePackages}/
export PYTHONPATH=$PYTHONPATH:$out/${python3.sitePackages}
2014-03-30 02:52:36 +01:00
'';
preFixup = ''
for f in $out/bin/*; do
wrapProgram $f \
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules" \
--prefix PYTHONPATH : "$PYTHONPATH" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
done
2014-03-30 02:52:36 +01:00
'';
2016-03-02 04:14:25 +00:00
nativeBuildInputs = [ pkgconfig python3 makeWrapper ];
2019-03-05 16:40:00 +00:00
buildInputs = [ gsettings-desktop-schemas webkitgtk ];
propagatedBuildInputs = with python2Packages; [ pygtk six ];
}