diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-07-17 22:59:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 22:59:19 -0400 |
commit | 47411c9f2a16c4e22b6b9b520ea3dcb05e8cff1a (patch) | |
tree | d76668757fd6bb85c604d54dfd2f148f9c127c22 /pkgs/tools | |
parent | 8250dbb1a99ee96845d88d78a9f4e757302f1730 (diff) | |
parent | c8c751aca277ae4c2f3de5efd32493d8095a819e (diff) |
Merge pull request #56893 from das-g/ili2c-init
ili2c: init at 5.0.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/ili2c/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ili2c/default.nix b/pkgs/tools/misc/ili2c/default.nix new file mode 100644 index 0000000000000..4d78f797f109a --- /dev/null +++ b/pkgs/tools/misc/ili2c/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, jdk, ant, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "ili2c"; + version = "5.0.0"; + + nativeBuildInputs = [ ant jdk makeWrapper ]; + + src = fetchFromGitHub { + owner = "claeis"; + repo = pname; + rev = "${pname}-${version}"; + sha256 = "0xps2343d5gdr2aj8j3l4cjq4k9zbxxlhnp8sjlhxh1wdczxlwx6"; + }; + + buildPhase = "ant jar"; + + installPhase = + '' + mkdir -p $out/share/${pname} + cp $build/build/source/build/jar/ili2c.jar $out/share/${pname} + + mkdir -p $out/bin + makeWrapper ${jre}/bin/java $out/bin/ili2c \ + --add-flags "-jar $out/share/${pname}/ili2c.jar" + ''; + + meta = with stdenv.lib; { + description = "The INTERLIS Compiler"; + longDescription = '' + Checks the syntactical correctness of an INTERLIS data model. + ''; + homepage = "https://www.interlis.ch/downloads/ili2c"; + license = licenses.lgpl21Plus; + maintainers = [ maintainers.das-g ]; + platforms = platforms.linux; + }; +} |