mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
4bbd0d9aad
svn path=/nixpkgs/trunk/; revision=10219
21 lines
479 B
Nix
21 lines
479 B
Nix
{stdenv, fetchurl, libusb}:
|
|
|
|
let
|
|
|
|
usbids = fetchurl {
|
|
url = http://nix.cs.uu.nl/dist/tarballs/usb.ids.20080115.bz2;
|
|
sha256 = "0xymp8fpp9pnkj2i4ry8zpsvy18zw14sx03pnz316lpgwc6dx12n";
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "usbutils-0.73";
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/linux-usb/usbutils-0.73.tar.gz;
|
|
sha256 = "1x27mc2apyipf8fa2ac49rfnkm7f5dwv784b1ncgc5yjiz4prp1f";
|
|
};
|
|
buildInputs = [libusb];
|
|
preBuild = "bunzip2 < ${usbids} > usb.ids";
|
|
}
|