tlp: enable tests

This commit is contained in:
worldofpeace 2019-04-03 03:11:41 -04:00
parent 88aad172ab
commit c1c03ae211

View File

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