uhubctl: fix darwin build (#361491)

This commit is contained in:
Pavol Rusnak 2024-12-04 09:32:03 +01:00 committed by GitHub
commit 0d5a61037c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
{ lib
, stdenv
, fetchFromGitHub
, which
, pkg-config
, libusb1
}:
@ -15,6 +17,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-mpeDePHLsa4sGe2+8X9KQ8AYn7wtybDnaZzxnf4oETQ=";
};
nativeBuildInputs = [ which pkg-config ];
buildInputs = [ libusb1 ];
installFlags = [ "prefix=${placeholder "out"}" ];
@ -23,7 +27,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/mvp/uhubctl";
description = "Utility to control USB power per-port on smart USB hubs";
license = licenses.gpl2Only;
maintainers = with maintainers; [ prusnak ];
maintainers = with maintainers; [ prusnak carlossless ];
platforms = with platforms; linux ++ darwin;
mainProgram = "uhubctl";
};