8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 sha256 = "01qdj7zzgwb1zqcznfmnks3dnl6hnf8ib0sm0sgimsbcvajmhab3";
20 # Add Cargo.lock lockfile, which upstream does not include
21 ./0001-cargo-lockfile.patch
24 cargoBuildFlags = [ "--workspace" ];
25 cargoSha256 = "0svn2gzipslz939396rcydqx3i1x07l7acas7fhql12n59n2yrxw";
27 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
29 doInstallCheck = true;
30 installCheckPhase = ''
33 printf "abc,1\nabcd,1" > "$csv"
34 $out/bin/fst map "$csv" "$fst" --force
35 $out/bin/fst fuzzy "$fst" 'abc'
36 $out/bin/fst --help > /dev/null
40 description = "Represent large sets and maps compactly with finite state transducers";
41 homepage = "https://github.com/BurntSushi/fst";
42 license = with licenses; [ unlicense /* or */ mit ];
43 maintainers = with maintainers; [ rmcgibbo ];