3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/uhubctl/default.nix

28 lines
657 B
Nix
Raw Normal View History

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