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
26
pkgs/development/tools/cdecl/default.nix
Normal file
26
pkgs/development/tools/cdecl/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{lib, stdenv, fetchurl, bison, flex, readline, ncurses, gnused}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cdecl";
|
||||
version = "2.5";
|
||||
src = fetchurl {
|
||||
url = "https://www.cdecl.org/files/${pname}-blocks-${version}.tar.gz";
|
||||
sha256 = "1b7k0ra30hh8mg8fqv0f0yzkaac6lfg6n376drgbpxg4wwml1rly";
|
||||
};
|
||||
|
||||
patches = [ ./cdecl-2.5-lex.patch ];
|
||||
preBuild = ''
|
||||
${gnused}/bin/sed 's/getline/cdecl_getline/g' -i cdecl.c;
|
||||
makeFlagsArray=(CFLAGS="-DBSD -DUSE_READLINE -std=gnu89" LIBS=-lreadline);
|
||||
makeFlags="$makeFlags PREFIX=$out BINDIR=$out/bin MANDIR=$out/man1 CATDIR=$out/cat1 CC=$CC";
|
||||
mkdir -p $out/bin;
|
||||
'';
|
||||
buildInputs = [bison flex readline ncurses];
|
||||
|
||||
meta = {
|
||||
description = "Translator English -- C/C++ declarations";
|
||||
license = lib.licenses.publicDomain;
|
||||
maintainers = with lib.maintainers; [joelteon];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue