mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
31 lines
679 B
Nix
31 lines
679 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libusb1
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "uhubctl";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvp";
|
|
repo = "uhubctl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-mpeDePHLsa4sGe2+8X9KQ8AYn7wtybDnaZzxnf4oETQ=";
|
|
};
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mvp/uhubctl";
|
|
description = "Utility to control USB power per-port on smart USB hubs";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
mainProgram = "uhubctl";
|
|
};
|
|
}
|