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/development/tools/parsing/flex/2.5.35.nix
Normal file
34
pkgs/development/tools/parsing/flex/2.5.35.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, autoreconfHook, flex, bison, texinfo, help2man, m4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flex";
|
||||
version = "2.5.35";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/westes/flex/archive/flex-${lib.replaceStrings ["."] ["-"] version}.tar.gz";
|
||||
sha256 = "0wh06nix8bd4w1aq4k2fbbkdq5i30a9lxz3xczf3ff28yy0kfwzm";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs tests
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ flex bison texinfo help2man autoreconfHook ];
|
||||
|
||||
propagatedBuildInputs = [ m4 ];
|
||||
|
||||
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
ac_cv_func_malloc_0_nonnull=yes
|
||||
ac_cv_func_realloc_0_nonnull=yes
|
||||
'';
|
||||
|
||||
doCheck = false; # fails 2 out of 46 tests
|
||||
|
||||
meta = with lib; {
|
||||
branch = "2.5.35";
|
||||
homepage = "http://flex.sourceforge.net/";
|
||||
description = "A fast lexical analyser generator";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue