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;
|
||||
};
|
||||
}
|
||||
11
pkgs/os-specific/linux/usbutils/fix-paths.patch
Normal file
11
pkgs/os-specific/linux/usbutils/fix-paths.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -61,7 +61,7 @@ EXTRA_DIST = \
|
||||
LICENSES/GPL-3.0-only.txt
|
||||
|
||||
lsusb.py: $(srcdir)/lsusb.py.in
|
||||
- sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
|
||||
+ sed 's|VERSION|$(VERSION)|g;s|@usbids@|@hwdata@/share/hwdata/usb.ids|g' $< >$@
|
||||
chmod 755 $@
|
||||
|
||||
lsusb.8: $(srcdir)/lsusb.8.in
|
||||
Loading…
Add table
Add a link
Reference in a new issue