amdsmi: expose as python module (#490590)

This commit is contained in:
Luna
2026-02-16 17:53:50 +00:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
@@ -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
View File
@@ -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 { };