mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
26 lines
760 B
Nix
26 lines
760 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.20";
|
|
pname = "commons-compress";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/commons/compress/binaries/${pname}-${version}-bin.tar.gz";
|
|
sha256 = "0zx1sc0rw3vzjan69vxr2qw82y9b0hqdzp4plcahc3c1y0vkz3fg";
|
|
};
|
|
|
|
installPhase = ''
|
|
tar xf ${src}
|
|
mkdir -p $out/share/java
|
|
cp *.jar $out/share/java/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://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 ];
|
|
license = lib.licenses.asl20;
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
}
|