1 { stdenv, fetchurl, makeWrapper, jre, lib }:
3 stdenv.mkDerivation rec {
9 "mirror://maven/org/apache/avro/avro-tools/${version}/${pname}-${version}.jar";
10 sha256 = "sha256-uVTnWXbCS3JQkHWxopixhNue/ihzvukJ0CNDL5gm24g=";
15 buildInputs = [ jre ];
16 nativeBuildInputs = [ makeWrapper ];
21 mkdir -p $out/libexec/avro-tools
22 cp $src $out/libexec/avro-tools/${pname}.jar
24 makeWrapper ${jre}/bin/java $out/bin/avro-tools \
25 --add-flags "-jar $out/libexec/avro-tools/${pname}.jar"
29 homepage = "https://avro.apache.org/";
30 description = "Avro command-line tools and utilities";
31 sourceProvenance = with sourceTypes; [ binaryBytecode ];
32 license = lib.licenses.asl20;
33 maintainers = with lib.maintainers; [ ];