summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2023-07-16 23:21:48 +0800
committerPeter Hoeg <peter@hoeg.com>2023-07-22 13:28:52 +0000
commit6a2378058a9ca90587764a2ed08c0fdc772edb92 (patch)
tree76cda17e5e982815d696aa8111d23bff25bed34c
parent941ae3102badd30faa344f7282c8d39287082a53 (diff)
downloadnixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar.gz
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar.bz2
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar.lz
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar.xz
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.tar.zst
nixpkgs-6a2378058a9ca90587764a2ed08c0fdc772edb92.zip
lm-sensors: add documentation
-rw-r--r--pkgs/os-specific/linux/lm-sensors/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/lm-sensors/default.nix b/pkgs/os-specific/linux/lm-sensors/default.nix
index 895e84f827b..9b37b7c7e63 100644
--- a/pkgs/os-specific/linux/lm-sensors/default.nix
+++ b/pkgs/os-specific/linux/lm-sensors/default.nix
@@ -48,7 +48,10 @@ stdenv.mkDerivation rec {
 
   # Making regexp to patch-out installing of .so symlinks from Makefile is
   # complicated, it is easier to remove them post-install.
-  postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
+  postInstall = ''
+    mkdir -p $out/share/doc/${pname}
+    cp -r configs doc/* $out/share/doc/${pname}
+  '' + lib.optionalString stdenv.hostPlatform.isStatic ''
     rm $out/lib/*.so*
   '';