python-pysqlite: fix darwin build

This commit is contained in:
Daiderd Jordan 2018-02-16 00:02:04 +01:00
parent 79e7f7af9a
commit 2b851d14d9
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -230,7 +230,7 @@ in {
diff-match-patch = callPackage ../development/python-modules/diff-match-patch { };
globus-sdk = callPackage ../development/python-modules/globus-sdk { };
gssapi = callPackage ../development/python-modules/gssapi { };
h5py = callPackage ../development/python-modules/h5py {
@ -254,7 +254,7 @@ in {
};
mwoauth = callPackage ../development/python-modules/mwoauth { };
neuron = pkgs.neuron.override {
inherit python;
};
@ -359,7 +359,7 @@ in {
};
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
python-sql = callPackage ../development/python-modules/python-sql { };
python-stdnum = callPackage ../development/python-modules/python-stdnum { };
@ -14657,7 +14657,7 @@ in {
substituteInPlace "setup.cfg" \
--replace "/usr/local/include" "${pkgs.sqlite.dev}/include" \
--replace "/usr/local/lib" "${pkgs.sqlite.out}/lib"
export LDSHARED="$CC -pthread -shared"
${stdenv.lib.optionalString (!stdenv.isDarwin) ''export LDSHARED="$CC -pthread -shared"''}
'';
meta = {