Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
It looks like after a bump, CMake started passing
--git-dir=.git
as the first argument ofgit rev-parse
. But we do not really need to spoofgit
program now that Kaldi uses CMake’sFetchContent
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
inVersionHelper
, to be potentially appended toKALDI_VERSION
but it was not actually being done by default. We can set the variable directly to skipVersionHelper
.Also remove redundant
enableParallelBuild
since CMake enables it.And drop separate
dev
output since Kaldi currently hardcodes theinclude/
directory so consumers would not be able to find them. Splitting it out only removes 7 out of 303 MB.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)