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
11
pkgs/development/tools/misc/cproto/cproto.patch
Normal file
11
pkgs/development/tools/misc/cproto/cproto.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
diff -Naur cproto-4.6-old/cproto.h cproto-4.6/cproto.h
|
||||
--- cproto-4.6-old/cproto.h 1998-01-18 19:49:16.000000000 -0500
|
||||
+++ cproto-4.6/cproto.h 2004-03-14 00:02:32.148070032 -0500
|
||||
@@ -117,6 +117,7 @@
|
||||
Declarator *declarator;
|
||||
DeclaratorList decl_list;
|
||||
} YYSTYPE;
|
||||
+#define YYSTYPE_IS_DECLARED 1
|
||||
|
||||
/* Prototype styles */
|
||||
#if OPT_LINTLIBRARY
|
||||
34
pkgs/development/tools/misc/cproto/default.nix
Normal file
34
pkgs/development/tools/misc/cproto/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, flex, bison }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cproto";
|
||||
version = "4.7t";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"mirror://debian/pool/main/c/cproto/cproto_${version}.orig.tar.gz"
|
||||
# No version listings and apparently no versioned tarball over http(s).
|
||||
"ftp://ftp.invisible-island.net/cproto/cproto-${version}.tgz"
|
||||
];
|
||||
sha256 = "sha256-PM6CpxaHtp4KPiNIn+glunLmk+VZzPGTOVIIrA65b+U=";
|
||||
};
|
||||
|
||||
# patch made by Joe Khoobyar copied from gentoo bugs
|
||||
patches = [ ./cproto.patch ];
|
||||
|
||||
nativeBuildInputs = [ flex bison ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
[ "$("$out/bin/cproto" -V 2>&1)" = '${version}' ]
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to generate C function prototypes from C source code";
|
||||
homepage = "https://invisible-island.net/cproto/";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue