mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
28 lines
657 B
Nix
28 lines
657 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, libusb1
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "uhubctl";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvp";
|
|
repo = "uhubctl";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "0pimhw2a2wfg7nh1ahsxmzkb0j6bbncwdqsvyp8l23zhs5kx7wm9";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|