2011-03-31 12:04:52 +02:00
|
|
|
{stdenv, fetchurl, ucl, zlib}:
|
2009-03-22 14:03:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-01-31 10:02:00 +01:00
|
|
|
name = "upx-3.91";
|
2009-03-22 14:03:37 +01:00
|
|
|
src = fetchurl {
|
2014-01-31 10:02:00 +01:00
|
|
|
url = mirror://sourceforge/upx/upx-3.91-src.tar.bz2;
|
|
|
|
sha256 = "0g3aiinlcb37z1xhs202h2qrgbf8dygiyarmflbgahcq89byfz2j";
|
2009-03-22 14:03:37 +01:00
|
|
|
};
|
2011-03-31 11:49:54 +02:00
|
|
|
|
2009-03-22 14:03:37 +01:00
|
|
|
buildInputs = [ ucl zlib ];
|
|
|
|
|
2011-03-31 11:49:54 +02:00
|
|
|
lzmaSrc = fetchurl {
|
|
|
|
url = mirror://sourceforge/sevenzip/lzma443.tar.bz2;
|
|
|
|
sha256 = "1ck4z81y6xv1x9ky8abqn3mj9xj2dwg41bmd5j431xgi8crgd1ds";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "
|
|
|
|
export UPX_UCLDIR=${ucl}
|
|
|
|
mkdir lzma443
|
|
|
|
pushd lzma443
|
|
|
|
tar xf $lzmaSrc
|
|
|
|
popd
|
|
|
|
export UPX_LZMADIR=`pwd`/lzma443
|
|
|
|
cd src
|
|
|
|
";
|
2009-03-22 14:03:37 +01:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
installPhase = "mkdir -p $out/bin ; cp upx.out $out/bin/upx";
|
2009-03-22 14:03:37 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://upx.sourceforge.net/;
|
|
|
|
description = "The Ultimate Packer for eXecutables";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-03-22 14:03:37 +01:00
|
|
|
};
|
|
|
|
}
|