···3132 settings = mkOption {
33 default = {};
34- description = "The INI configuration for Mbpfan.";
35 type = types.submodule {
36 freeformType = settingsFormat.type;
37···39 type = types.nullOr types.int;
40 default = 2000;
41 description = ''
42- The minimum fan speed. Setting to null enables automatic detection.
43- Check minimum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_min".
44- '';
45- };
46- options.general.max_fan1_speed = mkOption {
47- type = types.nullOr types.int;
48- default = 6199;
49- description = ''
50- The maximum fan speed. Setting to null enables automatic detection.
51- Check maximum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_max".
52 '';
53 };
54 options.general.low_temp = mkOption {
55 type = types.int;
56 default = 55;
57- description = "Temperature below which fan speed will be at minimum. Try ranges 55-63.";
58 };
59 options.general.high_temp = mkOption {
60 type = types.int;
61 default = 58;
62- description = "Fan will increase speed when higher than this temperature. Try ranges 58-66.";
63 };
64 options.general.max_temp = mkOption {
65 type = types.int;
66 default = 86;
67- description = "Fan will run at full speed above this temperature. Do not set it > 90.";
68 };
69 options.general.polling_interval = mkOption {
70 type = types.int;
···3132 settings = mkOption {
33 default = {};
34+ description = "INI configuration for Mbpfan.";
35 type = types.submodule {
36 freeformType = settingsFormat.type;
37···39 type = types.nullOr types.int;
40 default = 2000;
41 description = ''
42+ You can check minimum and maximum fan limits with
43+ "cat /sys/devices/platform/applesmc.768/fan*_min" and
44+ "cat /sys/devices/platform/applesmc.768/fan*_max" respectively.
45+ Setting to null implies using default value from applesmc.
00000046 '';
47 };
48 options.general.low_temp = mkOption {
49 type = types.int;
50 default = 55;
51+ description = "If temperature is below this, fans will run at minimum speed.";
52 };
53 options.general.high_temp = mkOption {
54 type = types.int;
55 default = 58;
56+ description = "If temperature is above this, fan speed will gradually increase.";
57 };
58 options.general.max_temp = mkOption {
59 type = types.int;
60 default = 86;
61+ description = "If temperature is above this, fans will run at maximum speed.";
62 };
63 options.general.polling_interval = mkOption {
64 type = types.int;
+34-20
pkgs/applications/audio/rhvoice/default.nix
···1-{ stdenv, lib, pkg-config, fetchFromGitHub, sconsPackages
2-, glibmm, libpulseaudio, libao }:
00000000034-let
5- version = "unstable-2018-02-10";
6-in stdenv.mkDerivation {
7 pname = "rhvoice";
8- inherit version;
910 src = fetchFromGitHub {
11- owner = "Olga-Yakovleva";
12 repo = "RHVoice";
13- rev = "7a25a881b0465e47a12d8029b56f3b71a1d02312";
14- sha256 = "1gkrlmv7msh9qlm0gkjqpl9gswghpclfdwszr1p85v8vk6m63v0b";
015 };
16000000000017 nativeBuildInputs = [
18- sconsPackages.scons_3_1_2 pkg-config
0019 ];
2021 buildInputs = [
22- glibmm libpulseaudio libao
00023 ];
24-25- # SConstruct patch
26- # Scons creates an independent environment that assumes standard POSIX paths.
27- # The patch is needed to push the nix environment.
28- # - PATH
29- # - PKG_CONFIG_PATH, to find available (sound) libraries
30- # - RPATH, to link to the newly built libraries
31-32- patches = [ ./honor_nix_environment.patch ];
3334 meta = {
35 description = "A free and open source speech synthesizer for Russian language and others";
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, ensureNewerSourcesForZipFilesHook
5+, pkg-config
6+, scons
7+, glibmm
8+, libpulseaudio
9+, libao
10+, speechd
11+}:
1213+stdenv.mkDerivation rec {
0014 pname = "rhvoice";
15+ version = "1.8.0";
1617 src = fetchFromGitHub {
18+ owner = "RHVoice";
19 repo = "RHVoice";
20+ rev = version;
21+ fetchSubmodules = true;
22+ hash = "sha256-G5886rjBaAp0AXcr07O0q7K1OXTayfIbd4zniKwDiLw=";
23 };
2425+ patches = [
26+ # SConstruct patch
27+ # Scons creates an independent environment that assumes standard POSIX paths.
28+ # The patch is needed to push the nix environment.
29+ # - PATH
30+ # - PKG_CONFIG_PATH, to find available (sound) libraries
31+ # - RPATH, to link to the newly built libraries
32+ ./honor_nix_environment.patch
33+ ];
34+35 nativeBuildInputs = [
36+ ensureNewerSourcesForZipFilesHook
37+ pkg-config
38+ scons
39 ];
4041 buildInputs = [
42+ glibmm
43+ libpulseaudio
44+ libao
45+ speechd
46 ];
0000000004748 meta = {
49 description = "A free and open source speech synthesizer for Russian language and others";