2019-08-20 09:38:01 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-04-04 10:47:39 +00:00
|
|
|
, libusb1
|
2019-08-20 09:38:01 +00:00
|
|
|
}:
|
|
|
|
|
2019-09-09 03:25:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-20 09:38:01 +00:00
|
|
|
pname = "uhubctl";
|
2020-05-25 04:43:39 +00:00
|
|
|
version = "2.2.0";
|
2019-08-20 09:38:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvp";
|
|
|
|
repo = "uhubctl";
|
2019-09-09 03:25:24 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2020-05-25 04:43:39 +00:00
|
|
|
sha256 = "0pimhw2a2wfg7nh1ahsxmzkb0j6bbncwdqsvyp8l23zhs5kx7wm9";
|
2019-08-20 09:38:01 +00:00
|
|
|
};
|
|
|
|
|
2020-04-04 10:47:39 +00:00
|
|
|
buildInputs = [ libusb1 ];
|
2019-08-20 09:38:01 +00:00
|
|
|
|
2019-09-09 03:25:24 +00:00
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
2019-08-20 09:38:01 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|