mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
28 lines
820 B
Nix
28 lines
820 B
Nix
{ 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.cc.libc}/lib/ld-linux.so.2 $out/bin/kzip
|
|
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/bin/zipmix
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool that aggressively optimizes the sizes of Zip archives";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
homepage = "http://advsys.net/ken/utils.htm";
|
|
maintainers = [ maintainers.sander ];
|
|
};
|
|
}
|