Unverified Commit eb89eebf authored by Luna's avatar Luna Committed by GitHub
Browse files

amdsmi: expose as python module (#490590)

parents 5fdf16f3 e229fe7d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  cmake,
  pkg-config,
  libdrm,
  python,
  wrapPython,
  autoPatchelfHook,
}:
@@ -67,6 +68,9 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  postInstall = ''
    mkdir -p $out/${python.sitePackages}
    ln -s $out/share/amd_smi/amdsmi $out/${python.sitePackages}/amdsmi

    makeWrapperArgs=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libdrm ]})
    wrapPythonProgramsIn $out
    rm $out/bin/amd-smi
+6 −0
Original line number Diff line number Diff line
@@ -694,6 +694,12 @@ self: super: with self; {
  amcrest = callPackage ../development/python-modules/amcrest { };
  amdsmi = toPythonModule (
    pkgs.rocmPackages.amdsmi.override {
      inherit python;
    }
  );
  ament-package = callPackage ../development/python-modules/ament-package { };
  amply = callPackage ../development/python-modules/amply { };