fix(zenergy): use installTargets instead of installPhase

This commit is contained in:
Alexandre Cavalheiro 2024-10-24 22:46:25 -03:00
parent bb9f71b3cc
commit 4695031940
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -29,16 +29,12 @@ stdenv.mkDerivation {
makeFlags = kernel.makeFlags ++ [ "KDIR=${kernelDirectory}" ]; makeFlags = kernel.makeFlags ++ [ "KDIR=${kernelDirectory}" ];
makeTargets = [ "modules_install" ]; installTargets = [ "modules_install" ];
preBuild = '' preBuild = ''
substituteInPlace Makefile --replace-fail "PWD modules_install" "PWD INSTALL_MOD_PATH=$out modules_install" substituteInPlace Makefile --replace-fail "PWD modules_install" "PWD INSTALL_MOD_PATH=$out modules_install"
''; '';
installPhase = ''
make modules_install KDIR=${kernelDirectory}
'';
meta = with lib; { meta = with lib; {
description = "Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely."; description = "Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
homepage = "https://github.com/BoukeHaarsma23/zenergy"; homepage = "https://github.com/BoukeHaarsma23/zenergy";