nixpkgs/pkgs/tools/misc/uhubctl/default.nix
Jan Tojnar 38ed5c6d8e
uhubctl: fix build
It was using libusb-compat instead of libusb1, and the former no longer propagates the latter.
2020-04-04 12:47:39 +02:00

27 lines
657 B
Nix

{ stdenv
, fetchFromGitHub
, libusb1
}:
stdenv.mkDerivation rec {
pname = "uhubctl";
version = "2.1.0";
src = fetchFromGitHub {
owner = "mvp";
repo = "uhubctl";
rev = "refs/tags/v${version}";
sha256 = "1cgmwsf68g49k6q4jvz073bpjhg5p73kk1a4kbgkxmvx01gmbcmq";
};
buildInputs = [ libusb1 ];
installFlags = [ "prefix=${placeholder "out"}" ];
meta = with stdenv.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;
};
}