about summary refs log tree commit diff
path: root/pkgs/tools/misc/tlp/default.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2019-04-03 03:11:41 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2019-04-03 03:36:18 -0400
commitc1c03ae211da631ee1786fb8ae95ab50864449aa (patch)
tree023f60a86a7eefd2d576f72ce1209e2bca5b1532 /pkgs/tools/misc/tlp/default.nix
parent88aad172ab150b9f0de0c92332e2c3920e66fe98 (diff)
tlp: enable tests
Diffstat (limited to 'pkgs/tools/misc/tlp/default.nix')
-rw-r--r--pkgs/tools/misc/tlp/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/misc/tlp/default.nix b/pkgs/tools/misc/tlp/default.nix
index e9743153b7736..2cdb8aff472ed 100644
--- a/pkgs/tools/misc/tlp/default.nix
+++ b/pkgs/tools/misc/tlp/default.nix
@@ -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)