summary refs log tree commit diff
path: root/pkgs/tools/compression/kzipmix/default.nix
blob: 9072a24b7fb5a7f682d93b95f636f4b91b3e31c9 (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
26
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "kzipmix";
  version = "20200115";

  src = fetchurl {
    url = "http://static.jonof.id.au/dl/kenutils/kzipmix-${version}-linux.tar.gz";
    sha256 = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA=";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp amd64/{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 = with lib; {
    description = "A tool that aggressively optimizes the sizes of Zip archives";
    license = licenses.unfree;
    homepage = "http://advsys.net/ken/utils.htm";
    maintainers = [ maintainers.sander ];
  };
}