git.iko.soy/typeable/nixpkgs
on master help sign in
tlp: enable tests
commitc1c03ae211da631ee1786fb8ae95ab50864449aa authorworldofpeace <worldofpeace@users.noreply.github.com> dateWed 3 Apr 2019, 03:11 (8 years ago) parent88aad17
1 file changed+9
pkgs/tools/misc/tlp/default.nix+9
pkgs/tools/misc/tlp/default.nix+9
@@ -1,6 +1,7 @@
11{ stdenv, lib, fetchFromGitHub, perl, makeWrapper, file, systemd, iw, rfkill
22, hdparm, ethtool, inetutils , kmod, pciutils, smartmontools
33, x86_energy_perf_policy, gawk, gnugrep, coreutils, utillinux
4+, checkbashisms, shellcheck
45, enableRDW ? false, networkmanager
56}:
67
@@ -46,6 +47,14 @@ in stdenv.mkDerivation rec {
4647
4748 installTargets = [ "install-tlp" "install-man" ] ++ stdenv.lib.optional enableRDW "install-rdw";
4849
50+ checkInputs = [
51+ checkbashisms
52+ shellcheck
53+ ];
54+
55+ doCheck = true;
56+ checkTarget = [ "checkall" ];
57+
4958 postInstall = ''
5059 cp -r $out/$out/* $out
5160 rm -rf $out/$(echo "$NIX_STORE" | cut -d "/" -f2)