about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-05-01 22:23:20 +0000
committerGitHub <noreply@github.com>2020-05-01 22:23:20 +0000
commitbd6736965a900e591cf78e1d96d132170feb8a7c (patch)
treec3c2bf9c79438d0f0f2f0fe4e270bfe32597b86d /pkgs
parent7866440f1223dc447f38cb23c00e10b44b4c98fe (diff)
parent4df94369519a724fdcb55ea2d0a7afc851ca7a82 (diff)
downloadnixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar.gz
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar.bz2
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar.lz
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar.xz
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.tar.zst
nixlib-bd6736965a900e591cf78e1d96d132170feb8a7c.zip
Merge pull request #84662 from michaelpj/update/heatseeker
heatseeker: fix finding stty
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/heatseeker/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/misc/heatseeker/default.nix b/pkgs/tools/misc/heatseeker/default.nix
index 22a7d8ec4a7d..e0b8c02a08ea 100644
--- a/pkgs/tools/misc/heatseeker/default.nix
+++ b/pkgs/tools/misc/heatseeker/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, coreutils }:
 
 rustPlatform.buildRustPackage rec {
   pname = "heatseeker";
@@ -13,6 +13,13 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "0jnlcm7v29m4nc318qgf7r7jvs80s7n04fw83imm506vwr9rxbx9";
 
+  # https://github.com/rschmitt/heatseeker/issues/42
+  # I've suggested using `/usr/bin/env stty`, but doing that isn't quite as simple
+  # as a substitution, and this works since we have the path to coreutils stty.
+  patchPhase = ''
+    substituteInPlace src/screen/unix.rs --replace "/bin/stty" "${coreutils}/bin/stty" 
+  '';
+
   # some tests require a tty, this variable turns them off for Travis CI,
   # which we can also make use of
   TRAVIS = "true";