cypthon: moduralize so it can be called with other versions

This commit is contained in:
Domen Kožar
2023-06-05 15:14:45 +01:00
committed by Frederik Rietdijk
parent b4222d6661
commit 9f3e0de184
3 changed files with 107 additions and 104 deletions
@@ -53,6 +53,7 @@
, enableLTO ? stdenv.is64bit && stdenv.isLinux
, reproducibleBuild ? false
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
, noldconfigPatch ? ./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch"
} @ inputs:
# Note: this package is used for bootstrapping fetchurl, and thus
@@ -252,7 +253,7 @@ in with passthru; stdenv.mkDerivation {
# ctypes.util.find_library during the loading of the uuid module
# (since it will do a futile invocation of gcc (!) to find
# libuuid, slowing down program startup a lot).
(./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch")
noldconfigPatch
# Make sure that the virtualenv activation scripts are
# owner-writable, so venvs can be recreated without permission
# errors.