summary refs log tree commit diff
path: root/pkgs/tools/compression/kzipmix/default.nix
blob: 73931f6bcaea387c5f776215e93b784d29572ae5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{lib, stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "kzipmix-20091108";

  src = fetchurl {
    url = "http://static.jonof.id.au/dl/kenutils/kzipmix-20091108-linux.tar.gz";
    sha256 = "19gyn8pblffdz1bf3xkbpzx8a8wn3xb0v411pqzmz5g5l6pm5gph";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp kzip zipmix $out/bin

    patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/kzip
    patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix
  '';

  meta = {
    description = "A tool that aggressively optimizes the sizes of Zip archives";
    license = lib.licenses.unfree;
    homepage = "http://advsys.net/ken/utils.htm";
    maintainers = [ lib.maintainers.sander ];
  };
}