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,35 @@
{ lib, stdenv, fetchzip, libpng, zlib, zopfli }:
stdenv.mkDerivation rec {
pname = "apngasm";
version = "2.91";
src = fetchzip {
url = "mirror://sourceforge/${pname}/${pname}-${version}-src.zip";
stripRoot = false;
sha256 = "0qhljqql159xkn1l83vz0q8wvzr7rjz4jnhiy0zn36pgvacg0zn1";
};
buildInputs = [ libpng zlib zopfli ];
postPatch = ''
rm -rf libpng zlib zopfli
'';
NIX_CFLAGS_LINK = "-lzopfli";
installPhase = ''
install -Dt $out/bin apngasm
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Create highly optimized Animated PNG files from PNG/TGA images";
homepage = "http://apngasm.sourceforge.net/";
license = licenses.zlib;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, libpng, zlib }:
stdenv.mkDerivation rec {
pname = "apngasm";
version = "3.1.10";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "f105b2d6024ef3113bb407d68e27e476a17fa998";
sha256 = "sha256-lTk2sTllKHRUaWPPEkC4qU5K10oRaLrdWBgN4MUGKeo=";
};
patches = [
# Fix parallel build and avoid static linking of binary.
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/apngasm/files/apngasm-3.1.10-static.patch?id=45fd0cde71ca2ae0e7e38ab67400d84b86b593d7";
sha256 = "sha256-eKthgInWxXEqN5PupvVf9wVQDElxsPYRFXT7pMc6vIU=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [ boost libpng zlib ];
meta = with lib; {
description = "Create an APNG from multiple PNG files";
homepage = "https://github.com/apngasm/apngasm";
license = licenses.zlib;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}