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
31
pkgs/os-specific/linux/can-utils/default.nix
Normal file
31
pkgs/os-specific/linux/can-utils/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "can-utils";
|
||||
# There are no releases (source archives or git tags), so use the date of the
|
||||
# latest commit in git master as version number.
|
||||
version = "20170830";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linux-can";
|
||||
repo = "can-utils";
|
||||
rev = "5b518a0a5fa56856f804372a6b99b518dedb5386";
|
||||
sha256 = "1ygzp8rjr8f1gs48mb1pz7psdgbfhlvr6kjdnmzbsqcml06zvrpr";
|
||||
};
|
||||
|
||||
# Fixup build with newer Linux headers.
|
||||
postPatch = ''
|
||||
sed '1i#include <linux/sockios.h>' -i \
|
||||
slcanpty.c cansniffer.c canlogserver.c isotpdump.c isotpsniffer.c isotpperf.c
|
||||
'';
|
||||
|
||||
preConfigure = ''makeFlagsArray+=(PREFIX="$out")'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
|
||||
homepage = "https://github.com/linux-can/can-utils";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue