diff options
author | David Lum <david.lum91@gmail.com> | 2019-07-12 17:05:21 -0400 |
---|---|---|
committer | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2019-07-13 17:45:41 -0400 |
commit | d91fe04dc6fbc1e79548a3223598c66ad6092d46 (patch) | |
tree | f080c4c466166fee0ab259d209008e40b7224bcb /pkgs/development/tools/avro-tools/default.nix | |
parent | 9bf7fc99450fa81075436640af68bc97590c037e (diff) |
avro-tools: init at 1.9.0
Diffstat (limited to 'pkgs/development/tools/avro-tools/default.nix')
-rw-r--r-- | pkgs/development/tools/avro-tools/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/avro-tools/default.nix b/pkgs/development/tools/avro-tools/default.nix new file mode 100644 index 0000000000000..ee2367d28bba6 --- /dev/null +++ b/pkgs/development/tools/avro-tools/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, makeWrapper, jre, lib }: + +stdenv.mkDerivation rec { + version = "1.9.0"; + name = "avro-tools-${version}"; + + src = fetchurl { + url = + "https://repo1.maven.org/maven2/org/apache/avro/avro-tools/${version}/${name}.jar"; + sha256 = "164mcz7ljd2ikwsq9ba98galcjar4g4n6ag7kkh466nwrpbmd2zi"; + }; + + dontUnpack = true; + + buildInputs = [ jre ]; + nativeBuildInputs = [ makeWrapper ]; + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/libexec/avro-tools + mv $src ${name}.jar + cp ${name}.jar $out/libexec/avro-tools + + makeWrapper ${jre}/bin/java $out/bin/avro-tools \ + --add-flags "-jar $out/libexec/avro-tools/${name}.jar" + ''; + + meta = with stdenv.lib; { + homepage = https://avro.apache.org/; + description = "Avro command-line tools and utilities"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.nequissimus ]; + }; +} |