Unverified Commit 3d695c17 authored by Yueh-Shun Li's avatar Yueh-Shun Li Committed by GitHub
Browse files

pythonPackages.xrootd: improve xrootd overriding (#289072)

Make it easier to override its pkgs.xrootd dependency.
- Pass pkgs.xrootd as `xrootd` instead of `pkgs`.
- Call with `inherit (pkgs) xrootd;`
parent 3f04d960
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3,14 +3,14 @@
, cmake
, setuptools
, wheel
, pkgs
, xrootd
}:

buildPythonPackage rec {
  pname = "xrootd";
  pyproject = true;

  inherit (pkgs.xrootd) version src;
  inherit (xrootd) version src;

  sourceRoot = "${src.name}/bindings/python";

@@ -21,7 +21,7 @@ buildPythonPackage rec {
  ];

  buildInputs = [
    pkgs.xrootd
    xrootd
  ];

  dontUseCmakeConfigure = true;
+3 −1
Original line number Diff line number Diff line
@@ -16419,7 +16419,9 @@ self: super: with self; {
  xpybutil = callPackage ../development/python-modules/xpybutil { };
  xrootd = callPackage ../development/python-modules/xrootd { };
  xrootd = callPackage ../development/python-modules/xrootd {
    inherit (pkgs) xrootd;
  };
  xsdata = callPackage ../development/python-modules/xsdata { };