mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-25 23:01:02 +00:00
tests/emulators: fix download_emulators script
This commit is contained in:
parent
d720fa3f83
commit
426382da7c
@ -9,7 +9,5 @@ wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-
|
|||||||
|
|
||||||
chmod u+x emulators/trezor-emu-*
|
chmod u+x emulators/trezor-emu-*
|
||||||
|
|
||||||
if [ -f /etc/NIXOS ]; then
|
# are we in Nix(OS)?
|
||||||
# for this to work you need to run ./download_emulators.sh outside the main nix shell
|
command -v nix-shell >/dev/null && nix-shell -p autoPatchelfHook SDL2 SDL2_image --run "autoPatchelf emulators/trezor-emu-*"
|
||||||
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
|
|
||||||
fi
|
|
||||||
|
4
tests/emulators/.gitignore
vendored
4
tests/emulators/.gitignore
vendored
@ -1,3 +1 @@
|
|||||||
*
|
trezor-emu-*
|
||||||
!shell.nix
|
|
||||||
!.gitignore
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
with import <nixpkgs> {};
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "trezor-patch-emulators";
|
|
||||||
buildInputs = [
|
|
||||||
autoPatchelfHook
|
|
||||||
SDL2
|
|
||||||
SDL2_image
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user