From bae6ad8efa7aa085f39f6a024f3c06f546b75227 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 19 Jul 2016 15:06:10 +0200 Subject: [PATCH] uzbl: fix build See also #16740. --- pkgs/applications/networking/browsers/uzbl/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/uzbl/default.nix b/pkgs/applications/networking/browsers/uzbl/default.nix index 0fb0db998914..4b768602c6ea 100644 --- a/pkgs/applications/networking/browsers/uzbl/default.nix +++ b/pkgs/applications/networking/browsers/uzbl/default.nix @@ -1,6 +1,8 @@ { stdenv, fetchurl, pkgconfig, python3, makeWrapper, pygtk , webkit, glib_networking, gsettings_desktop_schemas, pythonPackages }: +# This package needs python3 during buildtime, +# but Python 2 + packages during runtime. stdenv.mkDerivation rec { name = "uzbl-v0.9.0"; @@ -22,8 +24,8 @@ stdenv.mkDerivation rec { 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/ + mkdir -p $out/${python3.sitePackages}/ + export PYTHONPATH=$PYTHONPATH:$out/${python3.sitePackages} ''; preFixup = '' @@ -37,5 +39,6 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig python3 makeWrapper ]; - buildInputs = [ gsettings_desktop_schemas webkit pygtk pythonPackages.six ]; + buildInputs = [ gsettings_desktop_schemas webkit ]; + propagatedBuildInputs = [ pygtk pythonPackages.six ]; }