nixpkgs/pkgs/development/libraries/java/commons/fileupload/default.nix
Robert Scott 3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00

26 lines
838 B
Nix

{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
version = "1.4";
pname = "commons-fileupload";
src = fetchurl {
url = "mirror://apache/commons/fileupload/binaries/${pname}-${version}-bin.tar.gz";
sha256 = "1avfv4gljp7flra767yzas54vfb6az9s1nhxfjv48jj2x0llxxkx";
};
installPhase = ''
tar xf ${src}
mkdir -p $out/share/java
cp commons-fileupload-*-bin/*.jar $out/share/java/
'';
meta = {
homepage = "https://commons.apache.org/proper/commons-fileupload";
description = "Makes it easy to add robust, high-performance, file upload capability to your servlets and web applications";
maintainers = with lib.maintainers; [ copumpkin ];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}