From 07b25b3c67e2d3c6fbd7688d98ff5ec602ad7338 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Thu, 5 Sep 2024 23:11:00 +0100 Subject: [PATCH] exificient: init at 1.0.7 --- pkgs/by-name/ex/exificient/package.nix | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ex/exificient/package.nix diff --git a/pkgs/by-name/ex/exificient/package.nix b/pkgs/by-name/ex/exificient/package.nix new file mode 100644 index 000000000000..f64ee15654ad --- /dev/null +++ b/pkgs/by-name/ex/exificient/package.nix @@ -0,0 +1,44 @@ +{ + maven, + fetchFromGitHub, + lib, + makeWrapper, + jre, +}: + +maven.buildMavenPackage rec { + pname = "exificient"; + version = "1.0.7"; + + src = fetchFromGitHub { + owner = "EXIficient"; + repo = "exificient"; + rev = "exificient-${version}"; + hash = "sha256-XrlZQf2BamYw8u1S2qQ6jV9mgyCEjBxKqPZCXMJzXmc="; + }; + + mvnHash = "sha256-/72Pi8WbKhPXu7Zb9r30znY1FHJc7FM42f7uQJqJnWo="; + + mvnParameters = "package assembly:single -Dmaven.test.skip=true"; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + ls -al target/classes/com/siemens/ + mkdir -p $out/bin $out/share/exificient + install -Dm644 target/exificient-jar-with-dependencies.jar $out/share/exificient + + makeWrapper ${jre}/bin/java $out/bin/exificient \ + --add-flags "-classpath $out/share/exificient/exificient-jar-with-dependencies.jar com.siemens.ct.exi.main.cmd.EXIficientCMD" + runHook postInstall + ''; + + meta = { + description = "Java implementation of the W3C Efficient Extensible Interchange (EXI) format specification"; + homepage = "http://exificient.github.io/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ samw ]; + mainProgram = "exificient"; + }; +}