Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 25 lines 760 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 version = "1.20"; 5 pname = "commons-compress"; 6 7 src = fetchurl { 8 url = "mirror://apache/commons/compress/binaries/${pname}-${version}-bin.tar.gz"; 9 sha256 = "0zx1sc0rw3vzjan69vxr2qw82y9b0hqdzp4plcahc3c1y0vkz3fg"; 10 }; 11 12 installPhase = '' 13 tar xf ${src} 14 mkdir -p $out/share/java 15 cp *.jar $out/share/java/ 16 ''; 17 18 meta = { 19 homepage = "http://commons.apache.org/proper/commons-compress"; 20 description = "Allows manipulation of ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200, bzip2, 7z, arj, lzma, snappy, DEFLATE and Z files"; 21 maintainers = with lib.maintainers; [ copumpkin ]; 22 license = lib.licenses.asl20; 23 platforms = with lib.platforms; unix; 24 }; 25}