nixpkgs/pkgs/tools/compression/kzipmix/default.nix

27 lines
763 B
Nix
Raw Normal View History

2021-07-21 13:39:50 +02:00
{ lib, stdenv, fetchurl }:
2014-08-14 16:10:30 +02:00
2021-07-21 13:39:50 +02:00
stdenv.mkDerivation rec {
pname = "kzipmix";
2021-07-22 01:06:19 +02:00
version = "20200115";
2014-08-14 16:10:30 +02:00
src = fetchurl {
2021-07-21 13:39:50 +02:00
url = "http://static.jonof.id.au/dl/kenutils/kzipmix-${version}-linux.tar.gz";
2021-07-22 01:06:19 +02:00
sha256 = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA=";
2014-08-14 16:10:30 +02:00
};
installPhase = ''
mkdir -p $out/bin
2021-07-22 01:06:19 +02:00
cp amd64/{kzip,zipmix} $out/bin
2021-01-15 10:19:50 +01:00
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
2014-08-14 16:10:30 +02:00
'';
2021-07-21 13:39:50 +02:00
meta = with lib; {
description = "A tool that aggressively optimizes the sizes of Zip archives";
2021-07-21 13:39:50 +02:00
license = licenses.unfree;
homepage = "http://advsys.net/ken/utils.htm";
2021-07-21 13:39:50 +02:00
maintainers = [ maintainers.sander ];
2014-08-14 16:10:30 +02:00
};
}