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
36
pkgs/tools/compression/upx/default.nix
Normal file
36
pkgs/tools/compression/upx/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchurl, ucl, zlib, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "upx";
|
||||
version = "3.96";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/upx/upx/releases/download/v${version}/${pname}-${version}-src.tar.xz";
|
||||
sha256 = "051pk5jk8fcfg5mpgzj43z5p4cn7jy5jbyshyn78dwjqr7slsxs7";
|
||||
};
|
||||
|
||||
buildInputs = [ ucl zlib perl ];
|
||||
|
||||
preConfigure = ''
|
||||
export UPX_UCLDIR=${ucl}
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"-C" "src"
|
||||
"CHECK_WHITESPACE=true"
|
||||
|
||||
# Disable blanket -Werror. Triggers failues on minor gcc-11 warnings.
|
||||
"CXXFLAGS_WERROR="
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp src/upx.out $out/bin/upx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://upx.github.io/";
|
||||
description = "The Ultimate Packer for eXecutables";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue