Unverified Commit 0d5a6103 authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

uhubctl: fix darwin build (#361491)

parents e2bf75c8 c4964905
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
{ 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";
  };