1 { lib, fetchFromGitHub, rustPlatform, coreutils }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-SU5HLAFA7IHnVhsmVtxskteeKKIEvvVSqHIeEk5BkfA=";
14 cargoSha256 = "sha256-RHD2/Uvj8NWpZ+xK16xTN5K/hDWYhwHnu2E5NslGFQI=";
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 ];
33 platforms = platforms.unix;