weechat: do not hard code python prefix
This commit is contained in:
parent
1048dbc33c
commit
4debe3c927
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||||
# then.
|
# then.
|
||||||
patches = [ ./fix-gnutls-32.diff ];
|
patches = [ ./fix-gnutls-32.diff ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${python}/include/python2.7";
|
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"
|
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"
|
||||||
|
|
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
cacert cmake ]
|
cacert cmake ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin pythonPackages.pync;
|
++ stdenv.lib.optional stdenv.isDarwin pythonPackages.pync;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${python}/include/python2.7";
|
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"
|
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"
|
||||||
|
|
Loading…
Reference in New Issue