16 stdenv.mkDerivation (finalAttrs: {
18 version = "5.1.1"; # There are newer versions, but they use gradle
27 src = fetchFromGitHub {
30 rev = "ili2c-${finalAttrs.version}";
31 hash = "sha256-FHhx+f253+UdbFjd2fOlUY1tpQ6pA2aVu9CBSwUVoKQ=";
35 # avoids modifying Version.properties file because that would insert the current timestamp into the file
36 ./dont-use-build-timestamp.patch
48 install -Dm644 build/jar/ili2c.jar -t $out/share/ili2c
49 makeWrapper ${jre}/bin/java $out/bin/ili2c \
50 --add-flags "-jar $out/share/ili2c/ili2c.jar"
56 description = "INTERLIS Compiler";
58 Checks the syntactical correctness of an INTERLIS data model.
60 homepage = "https://www.interlis.ch/downloads/ili2c";
61 sourceProvenance = with sourceTypes; [
63 binaryBytecode # source bundles dependencies as jars
65 license = licenses.lgpl21Plus;
66 maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
67 platforms = platforms.unix;
68 mainProgram = "ili2c";