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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib, stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, pkg-config, perl, libtirpc, libnsl }:
stdenv.mkDerivation rec {
pname = "argus-clients";
version = "3.0.8.3";
src = fetchurl {
url = "http://qosient.com/argus/src/${pname}-${version}.tar.gz";
sha256 = "sha256-uNTvi6zbrYHAivQMPkhlNCoqRW9GOkgKvCf3mInds80=";
};
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
postPatch = ''
for file in ./examples/*/*.pl; do
substituteInPlace $file \
--subst-var-by PERLBIN ${perl}/bin/perl
done
'';
configureFlags = [ "--with-perl=${perl}/bin/perl" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex libnsl ];
meta = with lib; {
description = "Clients for ARGUS";
longDescription = ''Clients for Audit Record Generation and
Utilization System (ARGUS). The Argus Project is focused on developing all
aspects of large scale network situtational awareness derived from
network activity audit. Argus, itself, is next-generation network
flow technology, processing packets, either on the wire or in
captures, into advanced network flow data. The data, its models,
formats, and attributes are designed to support Network
Operations, Performance and Security Management. If you need to
know what is going on in your network, right now or historically,
you will find Argus a useful tool. '';
homepage = "http://qosient.com/argus";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.linux;
};
}