3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #34630 from varunpatro/lsusb

lsusb for OSX
This commit is contained in:
Daiderd Jordan 2018-02-07 18:34:41 +01:00 committed by GitHub
commit c0aa8f5fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

View file

@ -718,6 +718,7 @@
vandenoever = "Jos van den Oever <jos@vandenoever.info>";
vanschelven = "Klaas van Schelven <klaas@vanschelven.com>";
vanzef = "Ivan Solyankin <vanzef@gmail.com>";
varunpatro = "Varun Patro <varun.kumar.patro@gmail.com>";
vbgl = "Vincent Laporte <Vincent.Laporte@gmail.com>";
vbmithr = "Vincent Bernardoff <vb@luminar.eu.org>";
vcunat = "Vladimír Čunát <vcunat@gmail.com>";

View file

@ -0,0 +1,28 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.0";
name = "lsusb-${version}";
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 = {
homepage = https://github.com/jlhonora/lsusb;
description = "lsusb command for Mac OS X";
platforms = stdenv.lib.platforms.darwin;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.varunpatro ];
};
}

View file

@ -44,6 +44,8 @@ in
};
libobjc = apple-source-releases.objc4;
lsusb = callPackage ../os-specific/darwin/lsusb { };
opencflite = callPackage ../os-specific/darwin/opencflite { };