From 7734aa2c82f6432cb140f36aeb80dcf20d9220f1 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 29 Mar 2022 00:08:48 +0200 Subject: [PATCH] ci: use autoPatchelfHook for emulators from pinned nixpkgs --- ci/shell.nix | 1 + tests/download_emulators.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/shell.nix b/ci/shell.nix index afcfba33443..e7648bdcfd6 100644 --- a/ci/shell.nix +++ b/ci/shell.nix @@ -72,6 +72,7 @@ stdenvNoCC.mkDerivation ({ SDL2 SDL2_image autoflake + autoPatchelfHook bash check curl # for connect tests diff --git a/tests/download_emulators.sh b/tests/download_emulators.sh index 0c34e5289bc..d0614cc8650 100755 --- a/tests/download_emulators.sh +++ b/tests/download_emulators.sh @@ -18,5 +18,6 @@ wget -e robots=off \ chmod u+x emulators/trezor-emu-* +cd .. # are we in Nix(OS)? -command -v nix-shell >/dev/null && nix-shell -p autoPatchelfHook SDL2 SDL2_image --run "autoPatchelf emulators/trezor-emu-*" +command -v nix-shell >/dev/null && nix-shell --run "autoPatchelf tests/emulators/trezor-emu-*"