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
43
pkgs/development/compilers/as31/default.nix
Normal file
43
pkgs/development/compilers/as31/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, bison
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "as31";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://wiki.erazor-zone.de/_media/wiki:projects:linux:as31:${pname}-${version}.tar.gz";
|
||||
name = "${pname}-${version}.tar.gz";
|
||||
hash = "sha256-zSEyWHFon5nyq717Mpmdv1XZ5Hz0e8ZABqsP8M83c1U=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Check return value of getline in run.c
|
||||
./0000-getline-break.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# parser.c is generated from parser.y; it is better to generate it via bison
|
||||
# instead of using the prebuilt one, especially in x86_64
|
||||
rm -f as31/parser.c
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
chmod +x configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://wiki.erazor-zone.de/wiki:projects:linux:as31";
|
||||
description = "An 8031/8051 assembler";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue