Create default.nix
This commit is contained in:
parent
65f90f9c67
commit
6626349a03
27
pkgs/os-specific/darwin/lsusb/default.nix
Normal file
27
pkgs/os-specific/darwin/lsusb/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user