mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
28 lines
655 B
Nix
28 lines
655 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, libusb
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "uhubctl";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvp";
|
|
repo = "uhubctl";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "1cgmwsf68g49k6q4jvz073bpjhg5p73kk1a4kbgkxmvx01gmbcmq";
|
|
};
|
|
|
|
buildInputs = [ libusb ];
|
|
|
|
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;
|
|
};
|
|
}
|