9 rustPlatform.buildRustPackage rec {
15 crateName = "fst-bin";
16 hash = "sha256-x2rvLMOhatMWU2u5GAdpYy2uuwZLi3apoE6aaTF+M1g=";
19 cargoHash = "sha256-yTbEaw+BbjVks3j7/b75kGoUjVftLaVYvYIdI/bbfdk=";
21 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
23 doInstallCheck = true;
24 installCheckPhase = ''
27 printf "abc,1\nabcd,1" > "$csv"
28 $out/bin/fst map "$csv" "$fst" --force
29 $out/bin/fst fuzzy "$fst" 'abc'
30 $out/bin/fst --help > /dev/null
34 description = "Represent large sets and maps compactly with finite state transducers";
36 homepage = "https://github.com/BurntSushi/fst";
37 license = with licenses; [
41 maintainers = with maintainers; [ rmcgibbo ];