mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Add commons-math (binary until I get maven build working)
Drop jakarta name from fileupload and update its version Jakarta regexp has been officially retired, and nothing in nixpkgs uses it, so let’s get rid of it. Add commons-io More commons additions/cleanup Closes #4181 Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
This commit is contained in:
parent
26ebd25844
commit
588a5e92a3
11 changed files with 131 additions and 47 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.2";
|
||||
name = "bcel-${version}";
|
||||
name = "commons-bcel-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/bcel/binaries/${name}.tar.gz";
|
||||
url = "mirror://apache/commons/bcel/binaries/bcel-${version}.tar.gz";
|
||||
sha256 = "13ppnd6afljdjq21jpn4ik2h1yxq8k2kg21ghi0lyb1yap1rd7k6";
|
||||
};
|
||||
|
||||
|
|
24
pkgs/development/libraries/java/commons/compress/default.nix
Normal file
24
pkgs/development/libraries/java/commons/compress/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.8.1";
|
||||
name = "commons-compress-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/compress/binaries/${name}-bin.tar.gz";
|
||||
sha256 = "11viabgf34r3zx1avj51n00hzmx89kym3i90l6a5v5dbfh61h0lp";
|
||||
};
|
||||
|
||||
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 stdenv.lib.maintainers; [ copumpkin ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.3.1";
|
||||
name = "commons-fileupload-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/fileupload/binaries/${name}-bin.tar.gz";
|
||||
sha256 = "1jy7w2j2ay56mpq4ij3331cf9zgpkm832ydr63svb35j0ymnky72";
|
||||
};
|
||||
installPhase = ''
|
||||
tar xf ${src}
|
||||
mkdir -p $out/share/java
|
||||
cp lib/*.jar $out/share/java/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://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 stdenv.lib.maintainers; [ copumpkin ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
24
pkgs/development/libraries/java/commons/io/default.nix
Normal file
24
pkgs/development/libraries/java/commons/io/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.4";
|
||||
name = "commons-io-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/io/binaries/${name}-bin.tar.gz";
|
||||
sha256 = "0m5xmjfr9k2zmbrz425q530jd0lm6368c4wm3jsjlsrqmqjpsvz1";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
tar xf ${src}
|
||||
mkdir -p $out/share/java
|
||||
cp *.jar $out/share/java/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://commons.apache.org/proper/commons-io";
|
||||
description = "A library of utilities to assist with developing IO functionality";
|
||||
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
24
pkgs/development/libraries/java/commons/lang/default.nix
Normal file
24
pkgs/development/libraries/java/commons/lang/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.3.2";
|
||||
name = "commons-lang-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/lang/binaries/commons-lang3-${version}-bin.tar.gz";
|
||||
sha256 = "1fmcx52h4cd2b7bplm7wy3725vh8bix64j3ykkxcn357y4j8ddzr";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
tar xf ${src}
|
||||
mkdir -p $out/share/java
|
||||
cp *.jar $out/share/java/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://commons.apache.org/proper/commons-lang";
|
||||
description = "Provides additional methods to manipulate standard Java library classes";
|
||||
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
24
pkgs/development/libraries/java/commons/math/default.nix
Normal file
24
pkgs/development/libraries/java/commons/math/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.3";
|
||||
name = "commons-math-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/commons/math/binaries/commons-math3-${version}-bin.tar.gz";
|
||||
sha256 = "1xs71c4vbai6zr84982g4ggv6c18dhkilkzw9n1irjqnjbgm5kzc";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
tar xf ${src}
|
||||
mkdir -p $out/share/java
|
||||
cp *.jar $out/share/java/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://commons.apache.org/proper/commons-math/";
|
||||
description = "A library of lightweight, self-contained mathematics and statistics components";
|
||||
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
set -e
|
||||
source $stdenv/setup
|
||||
|
||||
tar zxvf $src
|
||||
mkdir -p $out
|
||||
mv $name/* $out
|
|
@ -1,11 +0,0 @@
|
|||
{stdenv, fetchurl} :
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "commons-fileupload-1.0";
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://archive.apache.org/dist/jakarta/commons/fileupload/binaries/commons-fileupload-1.0.tar.gz;
|
||||
md5 = "5618b26b1a5c006d7236fb4465e907b6";
|
||||
};
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
# I want some provides mechanism for jar files. These
|
||||
# jars can then be added to the CLASSPATH by a dependent package.
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "jakarta-regexp-1.4";
|
||||
builder = ./java-bin-builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://tarballs.nixos.org/jakarta-regexp-1.4.tar.gz;
|
||||
md5 = "d903d84c949df848009f3bf205b32c97";
|
||||
};
|
||||
|
||||
jars = ["jakarta-regexp-1.4.jar"];
|
||||
|
||||
buildInputs = [stdenv];
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
source $stdenv/setup
|
||||
|
||||
tar zxvf $src
|
||||
cd jakarta-regexp-1.4
|
||||
mkdir -p $out/share/java/
|
||||
cp jakarta-regexp-1.4.jar $out/share/java/
|
|
@ -6738,10 +6738,18 @@ let
|
|||
stdenv = overrideInStdenv stdenv [gnumake380];
|
||||
};
|
||||
|
||||
commonsFileUpload = callPackage ../development/libraries/java/jakarta-commons/file-upload { };
|
||||
|
||||
commonsBcel = callPackage ../development/libraries/java/commons/bcel { };
|
||||
|
||||
commonsCompress = callPackage ../development/libraries/java/commons/compress { };
|
||||
|
||||
commonsFileUpload = callPackage ../development/libraries/java/commons/fileupload { };
|
||||
|
||||
commonsLang = callPackage ../development/libraries/java/commons/lang { };
|
||||
|
||||
commonsIo = callPackage ../development/libraries/java/commons/io { };
|
||||
|
||||
commonsMath = callPackage ../development/libraries/java/commons/math { };
|
||||
|
||||
fastjar = callPackage ../development/tools/java/fastjar { };
|
||||
|
||||
httpunit = callPackage ../development/libraries/java/httpunit { };
|
||||
|
@ -6750,8 +6758,6 @@ let
|
|||
|
||||
gwtwidgets = callPackage ../development/libraries/java/gwt-widgets { };
|
||||
|
||||
jakartaregexp = callPackage ../development/libraries/java/jakarta-regexp { };
|
||||
|
||||
javaCup = callPackage ../development/libraries/java/cup { };
|
||||
|
||||
javasvn = callPackage ../development/libraries/java/javasvn { };
|
||||
|
|
Loading…
Reference in a new issue