mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
ci: use custom uhubctl package
Simply bumping the nixpkgs unstable version causes python test to fail: https://gitlab.com/satoshilabs/trezor/trezor-firmware/-/jobs/1008507521 Until that's resolved we can stay on the current nixpkgs version and use our own copy of the uhubctl nix expression.
This commit is contained in:
parent
4d5e6e360f
commit
55474bdadd
@ -3,7 +3,7 @@ with import ../nixpkgs.nix;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "trezor-firmware-hardware-tests";
|
||||
buildInputs = [
|
||||
uhubctl
|
||||
(callPackage ./uhubctl.nix { }) # HACK FIXME replace this with just uhubctl once pinned version of nixpkgs is updated
|
||||
ffmpeg
|
||||
poetry
|
||||
libusb1
|
||||
|
27
ci/hardware_tests/uhubctl.nix
Normal file
27
ci/hardware_tests/uhubctl.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, libusb1
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "uhubctl";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mvp";
|
||||
repo = "uhubctl";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "1wxsiygw6gwv1h90yassnxylkyi2dfz7y59qkmb7rs8a8javj7nv";
|
||||
};
|
||||
|
||||
buildInputs = [ libusb1 ];
|
||||
|
||||
installFlags = [ "prefix=${placeholder "out"}" ];
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mvp/uhubctl";
|
||||
description = "Utility to control USB power per-port on smart USB hubs";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user