mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #26757 from dtzWill/update/upx-3.94
upx: 3.93 -> 3.94
This commit is contained in:
commit
3e735addd0
@ -2,31 +2,21 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "upx-${version}";
|
||||
version = "3.93";
|
||||
src = fetchFromGitHub {
|
||||
owner = "upx";
|
||||
repo = "upx";
|
||||
rev = "v${version}";
|
||||
sha256 = "03ah23q85hx3liqyyj4vm8vip2d47bijsimagqd39q762a2rin3i";
|
||||
version = "3.94";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/upx/upx/releases/download/v3.94/upx-3.94-src.tar.xz";
|
||||
sha256 = "08anybdliqsbsl6x835iwzljahnm9i7v26icdjkcv33xmk6p5vw1";
|
||||
};
|
||||
|
||||
buildInputs = [ ucl zlib perl ];
|
||||
|
||||
lzmaSrc = fetchFromGitHub {
|
||||
owner = "upx";
|
||||
repo = "upx-lzma-sdk";
|
||||
rev = "v${version}";
|
||||
sha256 = "16vj1c5bl04pzma0sr4saqk80y2iklyslzmrb4rm66aifa365zqj";
|
||||
};
|
||||
|
||||
preConfigure = "
|
||||
export UPX_UCLDIR=${ucl}
|
||||
cp -a $lzmaSrc/* src/lzma-sdk
|
||||
export UPX_LZMADIR=`pwd`/src/lzma-sdk
|
||||
cd src
|
||||
";
|
||||
|
||||
buildPhase = "make CHECK_WHITESPACE=true";
|
||||
makeFlags = [ "CHECK_WHITESPACE=true" ];
|
||||
|
||||
installPhase = "mkdir -p $out/bin ; cp upx.out $out/bin/upx";
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user