tlp: enable tests
This commit is contained in:
parent
88aad172ab
commit
c1c03ae211
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, perl, makeWrapper, file, systemd, iw, rfkill
|
{ stdenv, lib, fetchFromGitHub, perl, makeWrapper, file, systemd, iw, rfkill
|
||||||
, hdparm, ethtool, inetutils , kmod, pciutils, smartmontools
|
, hdparm, ethtool, inetutils , kmod, pciutils, smartmontools
|
||||||
, x86_energy_perf_policy, gawk, gnugrep, coreutils, utillinux
|
, x86_energy_perf_policy, gawk, gnugrep, coreutils, utillinux
|
||||||
|
, checkbashisms, shellcheck
|
||||||
, enableRDW ? false, networkmanager
|
, enableRDW ? false, networkmanager
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -46,6 +47,14 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installTargets = [ "install-tlp" "install-man" ] ++ stdenv.lib.optional enableRDW "install-rdw";
|
installTargets = [ "install-tlp" "install-man" ] ++ stdenv.lib.optional enableRDW "install-rdw";
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
checkbashisms
|
||||||
|
shellcheck
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkTarget = [ "checkall" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp -r $out/$out/* $out
|
cp -r $out/$out/* $out
|
||||||
rm -rf $out/$(echo "$NIX_STORE" | cut -d "/" -f2)
|
rm -rf $out/$(echo "$NIX_STORE" | cut -d "/" -f2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user