From 0407e78e8cc41b7bc76d0f1c154845e690841682 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 afcfba334..e7648bdcf 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 0c34e5289..d0614cc86 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-*"