Unverified Commit e09aa2ed authored by Vladimir Panteleev's avatar Vladimir Panteleev
Browse files

libblockdev: split out Python bindings

Allow overriding Python without requiring that the entire dependency
graph (e.g. udisks) to be built against that Python.
parent 387bdb9c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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