diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2019-08-20 11:38:01 +0200 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2019-08-20 12:33:46 +0200 |
commit | e06d89ab598a3343feb51221dd4367c0ea9683bd (patch) | |
tree | bffdf3e9c2ce4ba661737e14eaf96107009f4d05 /pkgs/tools/misc/uhubctl | |
parent | fa12335f425808f53121713f501f3335878e6901 (diff) |
uhubctl: init at unstable-2019-07-31
Diffstat (limited to 'pkgs/tools/misc/uhubctl')
-rw-r--r-- | pkgs/tools/misc/uhubctl/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/uhubctl/default.nix b/pkgs/tools/misc/uhubctl/default.nix new file mode 100644 index 0000000000000..5c858944b3feb --- /dev/null +++ b/pkgs/tools/misc/uhubctl/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, fetchFromGitHub +, libusb +}: + +stdenv.mkDerivation rec { + pname = "uhubctl"; + version = "unstable-2019-07-31"; + + src = fetchFromGitHub { + owner = "mvp"; + repo = "uhubctl"; + rev = "1961aa02e9924a54a6219d16c61a0beb0d626e46"; + sha256 = "15mvqp1xh079nqp0mynh3l1wmw4maa320pn4jr8bz7nh3knmk0n1"; + }; + + buildInputs = [ libusb ]; + + installFlags = [ "prefix=$(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; + }; +} |