2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 12:53:54 +00:00
Commit Graph

23 Commits

Author SHA1 Message Date
R. Ryantm
1e59c44a7b kaldi: 0-unstable-2024-09-16 -> 0-unstable-2024-10-04 2024-10-06 11:32:00 +00:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
R. Ryantm
dda4598ca1 kaldi: 0-unstable-2024-07-25 -> 0-unstable-2024-09-16 2024-09-18 07:50:21 +00:00
R. Ryantm
f4de0b978b kaldi: 0-unstable-2024-06-03 -> 0-unstable-2024-07-25 2024-08-02 11:58:00 +00:00
R. Ryantm
6d83737c25 kaldi: 0-unstable-2024-04-30 -> 0-unstable-2024-06-03 2024-06-03 21:14:55 +00:00
R. Ryantm
ca58ea3c60 kaldi: 0-unstable-2024-01-31 -> 0-unstable-2024-04-30 2024-05-12 20:52:17 +02:00
OPNA2608
e7d03c2441 kaldi: unstable-2024-01-31 -> 0-unstable-2024-01-31 2024-05-04 19:31:43 +02:00
R. Ryantm
bca8ed0d63 kaldi: unstable-2023-11-13 -> unstable-2024-01-31 2024-02-03 02:19:19 +00:00
R. Ryantm
40003254a3 kaldi: unstable-2023-10-13 -> unstable-2023-11-13 2023-11-20 07:11:18 +01:00
R. Ryantm
904decfcce kaldi: unstable-2023-05-02 -> unstable-2023-10-13 2023-10-29 01:13:41 +00:00
figsoda
3ef3b08083 pkgs/tools/audio: remove dead code 2023-07-25 10:28:26 -04:00
Jan Tojnar
2024f7d11d kaldi: unstable-2022-09-26 → unstable-2023-05-02
f6f4ccaf21..71f38e62ca
2023-06-06 22:02:36 +02:00
Jan Tojnar
5abf11a956 kaldi: Add update script
Also switch to finalAttrs so that the values can be easily overridden.
2023-06-06 22:02:36 +02:00
Jan Tojnar
e8588071cc kaldi: Remove openfst from inputs
It is shadowed by fetchgit source and can only be used vendored.
2023-06-06 22:02:36 +02:00
Jan Tojnar
34711ba5cf kaldi: Fix build
It looks like after a bump, CMake started passing `--git-dir=.git` as the first argument of `git rev-parse`.
But we do not really need to spoof `git` program now that Kaldi uses CMake’s `FetchContent` module.
We can just pass the path using configure flag directly:

https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_SOURCE_DIR_%3CuppercaseName%3E

Git was also inadvertently used for generating `KALDI_PATCH_NUMBER`
in `VersionHelper`, to be potentially appended to `KALDI_VERSION`
but it was not actually being done by default.
We can set the variable directly to skip `VersionHelper`.

Also remove redundant `enableParallelBuild` since CMake enables it.

And drop separate `dev` output since Kaldi currently hardcodes
the `include/` directory so consumers would not be able to find them.
Splitting it out only removes 7 out of 303 MB.
2023-06-06 22:02:36 +02:00
Jörg Thalheim
dd647368ff kaldi: 2021-12-03 -> 2022-09-26 2022-11-27 13:21:41 +01:00
Mario Rodas
4aaf5378d8 kaldi: fix build on darwin 2022-10-20 04:20:00 +00:00
Jörg Thalheim
cd142455e7 kaldi: enable parallel building 2021-12-03 19:12:59 +01:00
Jörg Thalheim
6d660b27e1 kaldi: 2020-12-26 -> 2021-12-03 2021-12-03 19:10:03 +01:00
junji hashimoto
c1d2660765
Update pkgs/tools/audio/kaldi/default.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-09-24 20:13:36 +09:00
Junji Hashimoto
e1ce3b2eec kaldi: fix build 2021-09-24 09:07:42 +00:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Jörg Thalheim
e03e3c5fad
kaldi: init at 2020-12-26
State-of-the-art speech-to-text engine - used in rhasspy

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-01-01 11:07:37 +01:00