summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-04-09 21:03:26 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2020-04-09 22:25:42 +0200
commit9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51 (patch)
tree7cba0da36ffe6584873b49f9f058f8e9be3c6367 /pkgs
parentf810c28503ed3bd91dc8d0f3e7991a421fb9f5e5 (diff)
downloadnixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar.gz
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar.bz2
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar.lz
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar.xz
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.tar.zst
nixpkgs-9fc8856b25e1ea2a89a6a5cc46a1128cb5348a51.zip
thermald: also install thermal-conf.xml into $out
Otherwise you get errors like this when running `thermald.service` from
the `services.thermald` module:

```
[WARN]22 CPUID levels; family:model:stepping 0x6:8e:a (6:142:10)
[WARN]Polling mode is enabled: 4
[WARN]sensor id 10 : No temp sysfs for reading raw temp
I/O warning : failed to load external entity "/nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml
[WARN]sysfs open failed
I/O warning : failed to load external entity "/nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml
I/O warning : failed to load external entity "/nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /nix/store/7d7cfc1949g7n7ywx47a0dsfz3b3rix5-thermald-1.9.1/etc/thermald/thermal-conf.xml
```
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/system/thermald/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/system/thermald/default.nix b/pkgs/tools/system/thermald/default.nix
index 7afa91abf13..fae772a2713 100644
--- a/pkgs/tools/system/thermald/default.nix
+++ b/pkgs/tools/system/thermald/default.nix
@@ -27,7 +27,11 @@ stdenv.mkDerivation rec {
     "--localstatedir=/var"
     "--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
     "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
-    ];
+  ];
+
+  postInstall = ''
+    cp ./data/thermal-conf.xml $out/etc/thermald/
+  '';
 
   meta = with stdenv.lib; {
     description = "Thermal Daemon";