uhubctl: cleanup src.rev

This commit is contained in:
Pavol Rusnak 2021-02-04 17:29:29 +01:00
parent cc9d44b2b9
commit 07cc794f57
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, libusb1
}:
@ -10,13 +11,14 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "mvp";
repo = "uhubctl";
rev = "refs/tags/v${version}";
rev = "v${version}";
sha256 = "1wxsiygw6gwv1h90yassnxylkyi2dfz7y59qkmb7rs8a8javj7nv";
};
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";