weechat: do not hard code python prefix

This commit is contained in:
Jason "Don" O'Conal 2014-05-15 08:27:40 +10:00
parent 1048dbc33c
commit 4debe3c927
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
# then.
patches = [ ./fix-gnutls-32.diff ];
NIX_CFLAGS_COMPILE = "-I${python}/include/python2.7";
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}";
postInstall = ''
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
cacert cmake ]
++ stdenv.lib.optional stdenv.isDarwin pythonPackages.pync;
NIX_CFLAGS_COMPILE = "-I${python}/include/python2.7";
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}";
postInstall = ''
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"