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
60
pkgs/tools/compression/bzip2/default.nix
Normal file
60
pkgs/tools/compression/bzip2/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, linkStatic ? with stdenv.hostPlatform; isStatic || isCygwin
|
||||
, autoreconfHook
|
||||
}:
|
||||
|
||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||
# cgit) that are needed here should be included directly in Nixpkgs as
|
||||
# files.
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bzip2";
|
||||
version = "1.0.6.0.2";
|
||||
|
||||
/* We use versions patched to use autotools style properly,
|
||||
saving lots of trouble. */
|
||||
src = fetchurl {
|
||||
urls = map
|
||||
(prefix: prefix + "/people/sbrabec/bzip2/tarballs/${pname}-${version}.tar.gz")
|
||||
[
|
||||
"http://ftp.uni-kl.de/pub/linux/suse"
|
||||
"ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse"
|
||||
"ftp://ftp.mplayerhq.hu/pub/linux/suse"
|
||||
"http://ftp.suse.com/pub" # the original patched version but slow
|
||||
];
|
||||
sha256 = "sha256-FnhwNy4OHe8d5M6iYCClkxzcB/EHXg0veXwv43ZlxbA=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
patches = [
|
||||
./CVE-2016-3189.patch
|
||||
./cve-2019-12900.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/<sys\\stat\.h>/s|\\|/|' bzip2.c
|
||||
'';
|
||||
|
||||
outputs = [ "bin" "dev" "out" "man" ];
|
||||
|
||||
configureFlags =
|
||||
lib.optionals linkStatic [ "--enable-static" "--disable-shared" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/lib/libbz2.so.1.0.* $out/lib/libbz2.so.1.0
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "High-quality data compression program";
|
||||
homepage = "https://www.sourceware.org/bzip2";
|
||||
changelog = "https://sourceware.org/git/?p=bzip2.git;a=blob;f=CHANGES;hb=HEAD";
|
||||
license = licenses.bsdOriginal;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue