depot/third_party/nixpkgs/pkgs/tools/misc/uhubctl/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04: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;
};
}