summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-10-29 06:15:27 +0200
committerJan Tojnar <jtojnar@gmail.com>2021-10-29 09:17:27 +0200
commit6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e (patch)
treea019c00cfe6668ce4719fdb07b4d4297c532f703
parent046ec823465877ce67d7209b2be2f94c38205ef2 (diff)
downloadnixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar.gz
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar.bz2
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar.lz
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar.xz
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.tar.zst
nixpkgs-6e64f03c12ef2636d86bde242cacc3b9d2ba9b8e.zip
nixosTests.power-profiles-daemon: add to all-tests.nix
This was forgotten in the inital PR.
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--pkgs/os-specific/linux/power-profiles-daemon/default.nix7
2 files changed, 8 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 63c307c0983..d45d5dbc022 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -371,6 +371,7 @@ in
   postgresql = handleTest ./postgresql.nix {};
   postgresql-wal-receiver = handleTest ./postgresql-wal-receiver.nix {};
   powerdns = handleTest ./powerdns.nix {};
+  power-profiles-daemon = handleTest ./power-profiles-daemon.nix {};
   pppd = handleTest ./pppd.nix {};
   predictable-interface-names = handleTest ./predictable-interface-names.nix {};
   printing = handleTest ./printing.nix {};
diff --git a/pkgs/os-specific/linux/power-profiles-daemon/default.nix b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
index f9ca936e6ed..e3599db09d5 100644
--- a/pkgs/os-specific/linux/power-profiles-daemon/default.nix
+++ b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
@@ -18,6 +18,7 @@
 , systemd
 , python3
 , wrapGAppsNoGuiHook
+, nixosTests
 }:
 
 stdenv.mkDerivation rec {
@@ -97,6 +98,12 @@ stdenv.mkDerivation rec {
     wrapPythonProgramsIn "$out/bin" "$pythonPath"
   '';
 
+  passthru = {
+    tests = {
+      nixos = nixosTests.power-profiles-daemon;
+    };
+  };
+
   meta = with lib; {
     homepage = "https://gitlab.freedesktop.org/hadess/power-profiles-daemon";
     description = "Makes user-selected power profiles handling available over D-Bus";