amdsmi: expose as python module
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user