Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl}: 2 3stdenv.mkDerivation rec { 4 version = "1.4"; 5 pname = "commons-fileupload"; 6 7 src = fetchurl { 8 url = "mirror://apache/commons/fileupload/binaries/${pname}-${version}-bin.tar.gz"; 9 sha256 = "1avfv4gljp7flra767yzas54vfb6az9s1nhxfjv48jj2x0llxxkx"; 10 }; 11 installPhase = '' 12 tar xf ${src} 13 mkdir -p $out/share/java 14 cp commons-fileupload-*-bin/*.jar $out/share/java/ 15 ''; 16 17 meta = { 18 homepage = "https://commons.apache.org/proper/commons-fileupload"; 19 description = "Makes it easy to add robust, high-performance, file upload capability to your servlets and web applications"; 20 maintainers = with lib.maintainers; [ copumpkin ]; 21 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 22 license = lib.licenses.asl20; 23 platforms = with lib.platforms; unix; 24 }; 25}