···31313232 settings = mkOption {
3333 default = {};
3434- description = "The INI configuration for Mbpfan.";
3434+ description = "INI configuration for Mbpfan.";
3535 type = types.submodule {
3636 freeformType = settingsFormat.type;
3737···3939 type = types.nullOr types.int;
4040 default = 2000;
4141 description = ''
4242- The minimum fan speed. Setting to null enables automatic detection.
4343- Check minimum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_min".
4444- '';
4545- };
4646- options.general.max_fan1_speed = mkOption {
4747- type = types.nullOr types.int;
4848- default = 6199;
4949- description = ''
5050- The maximum fan speed. Setting to null enables automatic detection.
5151- Check maximum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_max".
4242+ You can check minimum and maximum fan limits with
4343+ "cat /sys/devices/platform/applesmc.768/fan*_min" and
4444+ "cat /sys/devices/platform/applesmc.768/fan*_max" respectively.
4545+ Setting to null implies using default value from applesmc.
5246 '';
5347 };
5448 options.general.low_temp = mkOption {
5549 type = types.int;
5650 default = 55;
5757- description = "Temperature below which fan speed will be at minimum. Try ranges 55-63.";
5151+ description = "If temperature is below this, fans will run at minimum speed.";
5852 };
5953 options.general.high_temp = mkOption {
6054 type = types.int;
6155 default = 58;
6262- description = "Fan will increase speed when higher than this temperature. Try ranges 58-66.";
5656+ description = "If temperature is above this, fan speed will gradually increase.";
6357 };
6458 options.general.max_temp = mkOption {
6559 type = types.int;
6660 default = 86;
6767- description = "Fan will run at full speed above this temperature. Do not set it > 90.";
6161+ description = "If temperature is above this, fans will run at maximum speed.";
6862 };
6963 options.general.polling_interval = mkOption {
7064 type = types.int;
+34-20
pkgs/applications/audio/rhvoice/default.nix
···11-{ stdenv, lib, pkg-config, fetchFromGitHub, sconsPackages
22-, glibmm, libpulseaudio, libao }:
11+{ lib
22+, stdenv
33+, fetchFromGitHub
44+, ensureNewerSourcesForZipFilesHook
55+, pkg-config
66+, scons
77+, glibmm
88+, libpulseaudio
99+, libao
1010+, speechd
1111+}:
31244-let
55- version = "unstable-2018-02-10";
66-in stdenv.mkDerivation {
1313+stdenv.mkDerivation rec {
714 pname = "rhvoice";
88- inherit version;
1515+ version = "1.8.0";
9161017 src = fetchFromGitHub {
1111- owner = "Olga-Yakovleva";
1818+ owner = "RHVoice";
1219 repo = "RHVoice";
1313- rev = "7a25a881b0465e47a12d8029b56f3b71a1d02312";
1414- sha256 = "1gkrlmv7msh9qlm0gkjqpl9gswghpclfdwszr1p85v8vk6m63v0b";
2020+ rev = version;
2121+ fetchSubmodules = true;
2222+ hash = "sha256-G5886rjBaAp0AXcr07O0q7K1OXTayfIbd4zniKwDiLw=";
1523 };
16242525+ patches = [
2626+ # SConstruct patch
2727+ # Scons creates an independent environment that assumes standard POSIX paths.
2828+ # The patch is needed to push the nix environment.
2929+ # - PATH
3030+ # - PKG_CONFIG_PATH, to find available (sound) libraries
3131+ # - RPATH, to link to the newly built libraries
3232+ ./honor_nix_environment.patch
3333+ ];
3434+1735 nativeBuildInputs = [
1818- sconsPackages.scons_3_1_2 pkg-config
3636+ ensureNewerSourcesForZipFilesHook
3737+ pkg-config
3838+ scons
1939 ];
20402141 buildInputs = [
2222- glibmm libpulseaudio libao
4242+ glibmm
4343+ libpulseaudio
4444+ libao
4545+ speechd
2346 ];
2424-2525- # SConstruct patch
2626- # Scons creates an independent environment that assumes standard POSIX paths.
2727- # The patch is needed to push the nix environment.
2828- # - PATH
2929- # - PKG_CONFIG_PATH, to find available (sound) libraries
3030- # - RPATH, to link to the newly built libraries
3131-3232- patches = [ ./honor_nix_environment.patch ];
33473448 meta = {
3549 description = "A free and open source speech synthesizer for Russian language and others";