depot/pkgs/os-specific/darwin/lsusb/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

28 lines
702 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
version = "1.0";
pname = "lsusb";
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 = lib.platforms.darwin;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.varunpatro ];
};
}