mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
log4cxx: Clean up package expression.
Add meta.license and use a version attribute instead of hardcoding everything. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
c853841c8c
commit
440af2e5e5
|
@ -2,11 +2,12 @@
|
||||||
, apr, aprutil, db45, expat
|
, apr, aprutil, db45, expat
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "log4cxx-0.10.0";
|
name = "log4cxx-${version}";
|
||||||
|
version = "0.10.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://apache.mirrors.hoobly.com/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz;
|
url = "http://apache.mirrors.hoobly.com/logging/log4cxx/${version}/apache-${name}.tar.gz";
|
||||||
sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d";
|
sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,5 +27,6 @@ stdenv.mkDerivation {
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://logging.apache.org/log4cxx/index.html;
|
homepage = http://logging.apache.org/log4cxx/index.html;
|
||||||
description = "A logging framework for C++ patterned after Apache log4j";
|
description = "A logging framework for C++ patterned after Apache log4j";
|
||||||
|
license = stdenv.lib.licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue