about summary refs log tree commit diff
path: root/pkgs/applications/misc/mop
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-09-25 08:32:35 +0100
committerRaphael Megzari <raphael@megzari.com>2021-09-26 10:05:55 +0900
commit383b3b36d06bddd730acbb466f66af5b7bee913a (patch)
tree783826b19a52a87072e52483bed919b03244cdb9 /pkgs/applications/misc/mop
parentbd2cc001bdcb0df9fa6bbc25148797442f64bc07 (diff)
mop: fix build on bash-5
After 33518fcb453382 "stdenv/setup.sh: fix read -N 0 for bash 5"
build started failing as:

    consumeEntire(): ERROR: Input null bytes, won't process

Let's avoid running substituteInPlace on arbitrary binary files.
Diffstat (limited to 'pkgs/applications/misc/mop')
-rw-r--r--pkgs/applications/misc/mop/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/misc/mop/default.nix b/pkgs/applications/misc/mop/default.nix
index 007965f868b15..f31b79c9ddf41 100644
--- a/pkgs/applications/misc/mop/default.nix
+++ b/pkgs/applications/misc/mop/default.nix
@@ -9,7 +9,7 @@ buildGoPackage rec {
   goDeps = ./deps.nix;
 
   preConfigure = ''
-    for i in $(find . -type f);do
+    for i in *.go **/*.go; do
         substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
     done
     substituteInPlace Makefile --replace mop/cmd mop/mop