Skip to content

Commit 07b25b3

Browse files
committed
exificient: init at 1.0.7
1 parent 1812c49 commit 07b25b3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
maven,
3+
fetchFromGitHub,
4+
lib,
5+
makeWrapper,
6+
jre,
7+
}:
8+
9+
maven.buildMavenPackage rec {
10+
pname = "exificient";
11+
version = "1.0.7";
12+
13+
src = fetchFromGitHub {
14+
owner = "EXIficient";
15+
repo = "exificient";
16+
rev = "exificient-${version}";
17+
hash = "sha256-XrlZQf2BamYw8u1S2qQ6jV9mgyCEjBxKqPZCXMJzXmc=";
18+
};
19+
20+
mvnHash = "sha256-/72Pi8WbKhPXu7Zb9r30znY1FHJc7FM42f7uQJqJnWo=";
21+
22+
mvnParameters = "package assembly:single -Dmaven.test.skip=true";
23+
24+
nativeBuildInputs = [ makeWrapper ];
25+
26+
installPhase = ''
27+
runHook preInstall
28+
ls -al target/classes/com/siemens/
29+
mkdir -p $out/bin $out/share/exificient
30+
install -Dm644 target/exificient-jar-with-dependencies.jar $out/share/exificient
31+
32+
makeWrapper ${jre}/bin/java $out/bin/exificient \
33+
--add-flags "-classpath $out/share/exificient/exificient-jar-with-dependencies.jar com.siemens.ct.exi.main.cmd.EXIficientCMD"
34+
runHook postInstall
35+
'';
36+
37+
meta = {
38+
description = "Java implementation of the W3C Efficient Extensible Interchange (EXI) format specification";
39+
homepage = "http://exificient.github.io/";
40+
license = lib.licenses.mit;
41+
maintainers = with lib.maintainers; [ samw ];
42+
mainProgram = "exificient";
43+
};
44+
}

0 commit comments

Comments
 (0)