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