nixpkgs/pkgs/tools/misc/uhubctl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
646 B
Nix
Raw Normal View History

2021-02-04 16:29:29 +00:00
{ lib
, stdenv
2019-08-20 09:38:01 +00:00
, fetchFromGitHub
, libusb1
2019-08-20 09:38:01 +00:00
}:
2019-09-09 03:25:24 +00:00
stdenv.mkDerivation rec {
2019-08-20 09:38:01 +00:00
pname = "uhubctl";
2021-02-18 18:13:55 +00:00
version = "2.4.0";
2019-08-20 09:38:01 +00:00
src = fetchFromGitHub {
owner = "mvp";
repo = "uhubctl";
2021-02-04 16:29:29 +00:00
rev = "v${version}";
2021-02-18 18:13:55 +00:00
sha256 = "sha256-F3fOoZYnfIWMrESyVJ/9z6Vou1279avhs600rQayUVA=";
2019-08-20 09:38:01 +00:00
};
buildInputs = [ libusb1 ];
2019-08-20 09:38:01 +00:00
2019-09-09 03:25:24 +00:00
installFlags = [ "prefix=${placeholder "out"}" ];
2021-02-04 16:29:29 +00:00
meta = with lib; {
2019-08-20 09:38:01 +00:00
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;
};
}