mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
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:
parent
387bdb9c5e
commit
e09aa2ed43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user