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