2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-02-05 16:35:55 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-02-05 16:35:55 +00:00
|
|
|
version = "1.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lsusb";
|
2018-02-05 16:35:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlhonora";
|
|
|
|
repo = "lsusb";
|
|
|
|
rev = "8a6bd7084a55a58ade6584af5075c1db16afadd1";
|
|
|
|
sha256 = "0p8pkcgvsx44dd56wgipa8pzi3298qk9h4rl9pwsw1939hjx6h0g";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
install -m 0755 lsusb $out/bin
|
|
|
|
install -m 0444 man/lsusb.8 $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jlhonora/lsusb";
|
2018-02-05 16:35:55 +00:00
|
|
|
description = "lsusb command for Mac OS X";
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.varunpatro ];
|
2018-02-05 16:35:55 +00:00
|
|
|
};
|
|
|
|
}
|