avro-tools: init at 1.9.0
This commit is contained in:
parent
9bf7fc9945
commit
d91fe04dc6
35
pkgs/development/tools/avro-tools/default.nix
Normal file
35
pkgs/development/tools/avro-tools/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -128,6 +128,8 @@ in
|
|||
|
||||
addOpenGLRunpath = callPackage ../build-support/add-opengl-runpath { };
|
||||
|
||||
avro-tools = callPackage ../development/tools/avro-tools { };
|
||||
|
||||
# Zip file format only allows times after year 1980, which makes e.g. Python wheel building fail with:
|
||||
# ValueError: ZIP does not support timestamps before 1980
|
||||
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };
|
||||
|
|
Loading…
Reference in New Issue
Block a user