1{lib, stdenv, fetchurl}:
2
3stdenv.mkDerivation rec {
4 version = "6.6.1";
5 pname = "commons-bcel";
6
7 src = fetchurl {
8 url = "mirror://apache/commons/bcel/binaries/bcel-${version}-bin.tar.gz";
9 sha256 = "sha256-bwbERZqnmXD2LzGilDZYsr7BPQoTeZDwDU/8/AjAdP4=";
10 };
11
12 installPhase = ''
13 tar xf ${src}
14 mkdir -p $out/share/java
15 cp bcel-${version}.jar $out/share/java/
16 '';
17
18 meta = {
19 homepage = "https://commons.apache.org/proper/commons-bcel/";
20 description = "Gives users a convenient way to analyze, create, and manipulate (binary) Java class files";
21 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
22 maintainers = with lib.maintainers; [ copumpkin ];
23 license = lib.licenses.asl20;
24 platforms = with lib.platforms; unix;
25 };
26}