From c496490561595887b8b237ee5d45a7a2e1680137 Mon Sep 17 00:00:00 2001 From: Karolis Stasaitis Date: Tue, 3 Dec 2024 18:02:51 +0100 Subject: [PATCH] uhubctl: fix darwin build --- pkgs/by-name/uh/uhubctl/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/uh/uhubctl/package.nix b/pkgs/by-name/uh/uhubctl/package.nix index c4ea65eebd97..8feda34f2ad3 100644 --- a/pkgs/by-name/uh/uhubctl/package.nix +++ b/pkgs/by-name/uh/uhubctl/package.nix @@ -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"; };