libblockdev: split out Python bindings

Allow overriding Python without requiring that the entire dependency
graph (e.g. udisks) to be built against that Python.
This commit is contained in:
Vladimir Panteleev 2023-12-25 14:10:12 +00:00
parent 387bdb9c5e
commit e09aa2ed43
No known key found for this signature in database
GPG Key ID: 5004F0FAD051576D

View File

@ -40,12 +40,18 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-WCMedMkaMMhZbB3iJu3c+CTT3AvOjzOSYP45J+NQEDQ=";
};
outputs = [ "out" "dev" "devdoc" ];
outputs = [ "out" "dev" "devdoc" "python" ];
postPatch = ''
patchShebangs scripts
substituteInPlace src/python/gi/overrides/Makefile.am \
--replace-fail ''\'''${exec_prefix}' '@PYTHON_EXEC_PREFIX@'
'';
configureFlags = [
"--with-python_prefix=${placeholder "python"}"
];
nativeBuildInputs = [
autoconf-archive
autoreconfHook