Skip to content

Commit

Permalink
libblockdev: split out Python bindings
Browse files Browse the repository at this point in the history
Allow overriding Python without requiring that the entire dependency
graph (e.g. udisks) to be built against that Python.
  • Loading branch information
CyberShadow committed Nov 7, 2024
1 parent 387bdb9 commit e09aa2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/development/libraries/libblockdev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e09aa2e

Please sign in to comment.