summary refs log tree commit diff
path: root/pkgs/tools/compression/upx/default.nix
blob: 33e0e5a52013602cdc6666a01a56f9170f8e89ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{stdenv, fetchurl, ucl, zlib}:

stdenv.mkDerivation {
  name = "upx-3.04";
  src = fetchurl {
    url = http://upx.sourceforge.net/download/upx-3.04-src.tar.bz2;
    sha256 = "15vxjzaf21vfanidv6d0zf37jgy4xfhn399nc66651b064pnbf39";
  };
  buildInputs = [ ucl zlib ];

  preConfigure = "cd src";

  installPhase = "ensureDir $out/bin ; cp upx.out $out/bin/upx";

  meta = {
    homepage = http://upx.sourceforge.net/;
    description = "The Ultimate Packer for eXecutables";
    license = "GPLv2+";
  };
}