uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/os-specific/linux/usbutils/default.nix
Normal file
34
pkgs/os-specific/linux/usbutils/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, substituteAll, autoreconfHook, pkg-config, libusb1, hwdata, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "usbutils";
|
||||
version = "014";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/usb/usbutils/usbutils-${version}.tar.xz";
|
||||
sha256 = "sha256-Ogec+tYFYCJ7ZxkkgteBO/ljJvy7ZsBCVIOXFfJ2/Gk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit hwdata;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
buildInputs = [ libusb1 python3 ];
|
||||
|
||||
outputs = [ "out" "man" "python" ];
|
||||
postInstall = ''
|
||||
moveToOutput "bin/lsusb.py" "$python"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.linux-usb.org/";
|
||||
description = "Tools for working with USB devices, such as lsusb";
|
||||
maintainers = with maintainers; [ ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue