fix(zenergy): use installTargets instead of installPhase
This commit is contained in:
parent
bb9f71b3cc
commit
4695031940
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue