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