···194 # We need to handle the last column specially here, because it's
195 # open-ended (command + args).
196 lines = [ labels labelDefaults ] ++ (map (l: init l ++ [""]) masterCf);
197- in fold foldLine (genList (const 0) (length labels)) lines;
198199 # Pad a string with spaces from the right (opposite of fixedWidthString).
200 pad = width: str: let
···203 in str + optionalString (padWidth > 0) padding;
204205 # It's + 2 here, because that's the amount of spacing between columns.
206- fullWidth = fold (width: acc: acc + width + 2) 0 maxWidths;
207208 formatLine = line: concatStringsSep " " (zipListsWith pad maxWidths line);
209
···194 # We need to handle the last column specially here, because it's
195 # open-ended (command + args).
196 lines = [ labels labelDefaults ] ++ (map (l: init l ++ [""]) masterCf);
197+ in foldr foldLine (genList (const 0) (length labels)) lines;
198199 # Pad a string with spaces from the right (opposite of fixedWidthString).
200 pad = width: str: let
···203 in str + optionalString (padWidth > 0) padding;
204205 # It's + 2 here, because that's the amount of spacing between columns.
206+ fullWidth = foldr (width: acc: acc + width + 2) 0 maxWidths;
207208 formatLine = line: concatStringsSep " " (zipListsWith pad maxWidths line);
209
+1-1
nixos/modules/services/networking/autossh.nix
···7980 systemd.services =
8182- lib.fold ( s : acc : acc //
83 {
84 "autossh-${s.name}" =
85 let
···7980 systemd.services =
8182+ lib.foldr ( s : acc : acc //
83 {
84 "autossh-${s.name}" =
85 let
+1-1
nixos/modules/services/networking/nylon.nix
···160161 users.groups.nylon.gid = config.ids.gids.nylon;
162163- systemd.services = fold (a: b: a // b) {} nylonUnits;
164165 };
166}
···160161 users.groups.nylon.gid = config.ids.gids.nylon;
162163+ systemd.services = foldr (a: b: a // b) {} nylonUnits;
164165 };
166}
···1-{lib, stdenv, fetchurl, readline}:
23stdenv.mkDerivation rec {
4- # FIXME: replace Makefile so we can build MPI & MAC support
056- name = "mrbayes-3.1.2";
7- src = fetchurl {
8- url = "mirror://sourceforge/mrbayes/${name}.tar.gz";
9- sha256 = "1x7j8ca5wjrqrxmcpvd375ydm3s2pbkzykv8xfhg1jc037g560n6";
010 };
11- builder = ./builder.sh;
12- buildInputs = [readline];
1314 meta = with lib; {
15- description = "Bayesian Inference of Phylogeny";
16 longDescription = ''
17 Bayesian inference of phylogeny is based upon a
18 quantity called the posterior probability distribution of trees, which is
···22 MrBayes uses a simulation technique called Markov chain Monte Carlo (or
23 MCMC) to approximate the posterior probabilities of trees.
24 '';
25- license = licenses.gpl2;
26- homepage = "http://mrbayes.csit.fsu.edu/";
027 platforms = platforms.linux;
28 };
29}
···1+{ lib, stdenv, fetchFromGitHub, readline }:
23stdenv.mkDerivation rec {
4+ pname = "mrbayes";
5+ version = "3.2.7";
67+ src = fetchFromGitHub {
8+ owner = "NBISweden";
9+ repo = "MrBayes";
10+ rev = "v${version}";
11+ sha256 = "sha256-J0r4CxxQuZ3exvfCMRbLmyEd8ROaXNQG4afwiAs6H+M=";
12 };
001314 meta = with lib; {
15+ description = "Bayesian Inference of Phylogeny";
16 longDescription = ''
17 Bayesian inference of phylogeny is based upon a
18 quantity called the posterior probability distribution of trees, which is
···22 MrBayes uses a simulation technique called Markov chain Monte Carlo (or
23 MCMC) to approximate the posterior probabilities of trees.
24 '';
25+ maintainers = with maintainers; [ ];
26+ license = licenses.gpl2Plus;
27+ homepage = "https://nbisweden.github.io/MrBayes/";
28 platforms = platforms.linux;
29 };
30}
···1{ lib, stdenv
2-, fetchurl, autoreconfHook, gettext
3}:
45# Note: this package is used for bootstrapping fetchurl, and thus
···33 # on Darwin, so disable NLS for now.
34 ++ lib.optional stdenv.hostPlatform.isDarwin "--disable-nls";
3536- nativeBuildInputs = [ gettext ]
037 # Need to regenerate configure script with newer version in order to pass
38 # "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
39 # which doesn't work with the bootstrapTools bash, so can only do this
···1{ lib, stdenv
2+, fetchurl, autoreconfHook, gettext, netbsd
3}:
45# Note: this package is used for bootstrapping fetchurl, and thus
···33 # on Darwin, so disable NLS for now.
34 ++ lib.optional stdenv.hostPlatform.isDarwin "--disable-nls";
3536+ nativeBuildInputs =
37+ if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ]
38 # Need to regenerate configure script with newer version in order to pass
39 # "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
40 # which doesn't work with the bootstrapTools bash, so can only do this
+27-10
pkgs/development/libraries/wolfssl/default.nix
···1-{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
000023stdenv.mkDerivation rec {
4 pname = "wolfssl";
5- version = "4.8.0";
67 src = fetchFromGitHub {
8 owner = "wolfSSL";
···11 sha256 = "1w9gs9cq2yhj5s3diz3x1l15pgrc1pbm00jccizvcjyibmwyyf2h";
12 };
1314- # almost same as Debian but for now using --enable-all --enable-reproducible-build instead of --enable-distro to ensure options.h gets installed
15- configureFlags = [ "--enable-all" "--enable-reproducible-build" "--enable-pkcs11" "--enable-tls13" "--enable-base64encode" ];
0000001617- outputs = [ "out" "dev" "doc" "lib" ];
000001819- nativeBuildInputs = [ autoreconfHook ];
002021 postInstall = ''
22 # fix recursive cycle:
···2829 meta = with lib; {
30 description = "A small, fast, portable implementation of TLS/SSL for embedded devices";
31- homepage = "https://www.wolfssl.com/";
32- platforms = platforms.all;
33- license = licenses.gpl2Plus;
34- maintainers = with maintainers; [ mcmtroffaes ];
35 };
36}
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, autoreconfHook
5+}:
67stdenv.mkDerivation rec {
8 pname = "wolfssl";
9+ version = "4.8.1";
1011 src = fetchFromGitHub {
12 owner = "wolfSSL";
···15 sha256 = "1w9gs9cq2yhj5s3diz3x1l15pgrc1pbm00jccizvcjyibmwyyf2h";
16 };
1718+ # Almost same as Debian but for now using --enable-all --enable-reproducible-build instead of --enable-distro to ensure options.h gets installed
19+ configureFlags = [
20+ "--enable-all"
21+ "--enable-base64encode"
22+ "--enable-pkcs11"
23+ "--enable-reproducible-build"
24+ "--enable-tls13"
25+ ];
2627+ outputs = [
28+ "dev"
29+ "doc"
30+ "lib"
31+ "out"
32+ ];
3334+ nativeBuildInputs = [
35+ autoreconfHook
36+ ];
3738 postInstall = ''
39 # fix recursive cycle:
···4546 meta = with lib; {
47 description = "A small, fast, portable implementation of TLS/SSL for embedded devices";
48+ homepage = "https://www.wolfssl.com/";
49+ platforms = platforms.all;
50+ license = licenses.gpl2Plus;
51+ maintainers = with maintainers; [ fab mcmtroffaes ];
52 };
53}
···1{ lib
2-, python38
3, fetchFromGitHub
4, fetchpatch
5}:
···10# $ tts-server --model_name tts_models/en/ljspeech/glow-tts --vocoder_name vocoder_models/universal/libri-tts/fullband-melgan
11#
12# If you upgrade from an old version you may have to delete old models from ~/.local/share/tts
13-# Also note that your tts version might not support all available models so check:
14-# https://github.com/coqui-ai/TTS/releases/tag/v0.1.2
15#
16# For now, for deployment check the systemd unit in the pull request:
17# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
1819-let
20- python3 = python38;
21-in python3.pkgs.buildPythonApplication rec {
22 pname = "tts";
23- version = "0.1.2";
24-25- # https://github.com/coqui-ai/TTS/issues/570
26- disabled = python3.pythonAtLeast "3.9";
2728 src = fetchFromGitHub {
29 owner = "coqui-ai";
30 repo = "TTS";
31 rev = "v${version}";
32- sha256 = "1qgiaqn7iqxyf54qgnpmli69nw9s3gmi9qv874jsgycykc10hjg4";
33 };
3435 postPatch = ''
···1{ lib
2+, python3
3, fetchFromGitHub
4, fetchpatch
5}:
···10# $ tts-server --model_name tts_models/en/ljspeech/glow-tts --vocoder_name vocoder_models/universal/libri-tts/fullband-melgan
11#
12# If you upgrade from an old version you may have to delete old models from ~/.local/share/tts
0013#
14# For now, for deployment check the systemd unit in the pull request:
15# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
1617+python3.pkgs.buildPythonApplication rec {
0018 pname = "tts";
19+ version = "0.1.3";
0002021 src = fetchFromGitHub {
22 owner = "coqui-ai";
23 repo = "TTS";
24 rev = "v${version}";
25+ sha256 = "0akhiaaqz53bf5zyps3vgjifmgh5wvcc9r4lrq9hmj3dds03vkjq";
26 };
2728 postPatch = ''