3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/uzbl/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

46 lines
1.4 KiB
Nix

{ stdenv, fetchurl, pkgconfig, python3, makeWrapper
, webkitgtk, glib-networking, gsettings-desktop-schemas, python2Packages
}:
# This package needs python3 during buildtime,
# but Python 2 + packages during runtime.
stdenv.mkDerivation rec {
pname = "uzbl";
version = "0.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 = "uzbl-v${version}.tar.gz";
url = "https://github.com/uzbl/uzbl/archive/v${version}.tar.gz";
sha256 = "0iskhv653fdm5raiidimh9fzlsw28zjqx7b5n3fl1wgbj6yz074k";
};
preConfigure = ''
makeFlags="$makeFlags PREFIX=$out"
makeFlags="$makeFlags PYINSTALL_EXTRA=--prefix=$out"
mkdir -p $out/${python3.sitePackages}/
export PYTHONPATH=$PYTHONPATH:$out/${python3.sitePackages}
'';
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
'';
nativeBuildInputs = [ pkgconfig python3 makeWrapper ];
buildInputs = [ gsettings-desktop-schemas webkitgtk ];
propagatedBuildInputs = with python2Packages; [ pygtk six ];
}