Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 756 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 version = "6.10.0"; 9 pname = "commons-bcel"; 10 11 src = fetchurl { 12 url = "mirror://apache/commons/bcel/binaries/bcel-${version}-bin.tar.gz"; 13 hash = "sha256-RRVXxPtwbT9AX92T60uDJpFWF6DiotcG1KvKrlFfEWU="; 14 }; 15 16 installPhase = '' 17 tar xf ${src} 18 mkdir -p $out/share/java 19 cp bcel-${version}.jar $out/share/java/ 20 ''; 21 22 meta = { 23 homepage = "https://commons.apache.org/proper/commons-bcel/"; 24 description = "Gives users a convenient way to analyze, create, and manipulate (binary) Java class files"; 25 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 26 maintainers = [ ]; 27 license = lib.licenses.asl20; 28 platforms = with lib.platforms; unix; 29 }; 30}