13 inherit pname version;
16 url = "mirror://maven/org/apache/avro/avro-tools/${version}/${pname}-${version}.jar";
17 sha256 = "sha256-+OTQ2UWFLcL5HDv4j33LjKvADg/ClbuS6JPlSUXggIU=";
22 buildInputs = [ jre ];
23 nativeBuildInputs = [ makeWrapper ];
28 mkdir -p $out/libexec/avro-tools
29 cp $src $out/libexec/avro-tools/${pname}.jar
31 makeWrapper ${jre}/bin/java $out/bin/avro-tools \
32 --add-flags "-jar $out/libexec/avro-tools/${pname}.jar"
36 homepage = "https://avro.apache.org/";
37 description = "Avro command-line tools and utilities";
38 mainProgram = "avro-tools";
39 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ momeemt ];