1 { lib, fetchFromGitHub, rustPlatform, coreutils }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "1x7mdyf1m17s55f6yjdr1j510kb7a8f3zkd7lb2kzdc7nd3vgaxg";
14 cargoSha256 = "0jnlcm7v29m4nc318qgf7r7jvs80s7n04fw83imm506vwr9rxbx9";
16 # https://github.com/rschmitt/heatseeker/issues/42
17 # I've suggested using `/usr/bin/env stty`, but doing that isn't quite as simple
18 # as a substitution, and this works since we have the path to coreutils stty.
20 substituteInPlace src/screen/unix.rs --replace "/bin/stty" "${coreutils}/bin/stty"
23 # some tests require a tty, this variable turns them off for Travis CI,
24 # which we can also make use of
28 description = "A general-purpose fuzzy selector";
29 homepage = "https://github.com/rschmitt/heatseeker";
30 license = licenses.mit;
31 maintainers = [ maintainers.michaelpj ];
32 platforms = platforms.unix;