pygtk: fix broken symlink

${pygobject.name} now contains a python2- prefix resulting
in a broken symlink. this breaks pygtk and every depending application
This commit is contained in:
Jörg Thalheim 2016-09-04 09:39:17 +02:00
parent 8d977ead38
commit 3ab7bfeb30
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,9 @@
{ stdenv, fetchurl, python, mkPythonDerivation, pkgconfig, glib }:
mkPythonDerivation rec {
name = "pygobject-2.28.6";
name = "pygobject-${version}";
version = "2.28.6";
src = fetchurl {
url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
postInstall = ''
rm $out/bin/pygtk-codegen-2.0
ln -s ${pygobject}/bin/pygobject-codegen-2.0 $out/bin/pygtk-codegen-2.0
ln -s ${pygobject}/lib/${python.libPrefix}/site-packages/${pygobject.name}.pth \
ln -s ${pygobject}/lib/${python.libPrefix}/site-packages/pygobject-${pygobject.version}.pth \
$out/lib/${python.libPrefix}/site-packages/${name}.pth
'';
}