mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
tests/upgrade tests: patch emulators on NixOS
This commit is contained in:
parent
ddd9bee059
commit
bfa5047012
@ -3,6 +3,10 @@ SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# download all emulators without index files, without directories and only if not present
|
# download all emulators without index files, without directories and only if not present
|
||||||
wget --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
|
wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
|
||||||
|
|
||||||
chmod u+x emulators/trezor-emu-*
|
chmod u+x emulators/trezor-emu-*
|
||||||
|
|
||||||
|
if [ -f /etc/NIXOS ]; then
|
||||||
|
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
|
||||||
|
fi
|
||||||
|
1
tests/emulators/.gitignore
vendored
1
tests/emulators/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*
|
*
|
||||||
|
!shell.nix
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
10
tests/emulators/shell.nix
Normal file
10
tests/emulators/shell.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "trezor-patch-emulators";
|
||||||
|
buildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
SDL2
|
||||||
|
SDL2_image
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user