Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 827 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "kzipmix"; 9 version = "20200115"; 10 11 src = fetchurl { 12 url = "http://static.jonof.id.au/dl/kenutils/kzipmix-${version}-linux.tar.gz"; 13 sha256 = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA="; 14 }; 15 16 installPhase = '' 17 mkdir -p $out/bin 18 cp amd64/{kzip,zipmix} $out/bin 19 20 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/bin/kzip 21 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/bin/zipmix 22 ''; 23 24 meta = with lib; { 25 description = "Tool that aggressively optimizes the sizes of Zip archives"; 26 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 27 license = licenses.unfree; 28 homepage = "http://advsys.net/ken/utils.htm"; 29 maintainers = [ maintainers.sander ]; 30 }; 31}