depot/third_party/nixpkgs/pkgs/by-name/co/commonsCompress/package.nix

30 lines
824 B
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
version = "1.27.1";
pname = "commons-compress";
src = fetchurl {
url = "mirror://apache/commons/compress/binaries/${pname}-${version}-bin.tar.gz";
sha256 = "sha256-psD9VseWxx2ovdUGjEbUCm+fjnQ/D2S70NuyZ2nsXwA=";
};
installPhase = ''
tar xf ${src}
mkdir -p $out/share/java
cp *.jar $out/share/java/
'';
meta = {
homepage = "https://commons.apache.org/proper/commons-compress";
description = "Allows manipulation of ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200, bzip2, 7z, arj, lzma, snappy, DEFLATE and Z files";
maintainers = with lib.maintainers; [ copumpkin ];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}