nixpkgs/pkgs/tools/misc/ili2c/default.nix

40 lines
1023 B
Nix
Raw Normal View History

2020-09-19 16:40:08 +01:00
{ stdenv, fetchFromGitHub, jdk8, ant, makeWrapper, jre8 }:
2019-07-17 10:53:54 +01:00
2020-09-19 16:40:08 +01:00
let jdk = jdk8; jre = jre8; in
2019-07-17 10:53:54 +01:00
stdenv.mkDerivation rec {
pname = "ili2c";
2020-04-16 03:27:55 +01:00
version = "5.0.8";
2019-07-17 10:53:54 +01:00
nativeBuildInputs = [ ant jdk makeWrapper ];
src = fetchFromGitHub {
owner = "claeis";
repo = pname;
rev = "${pname}-${version}";
2020-04-16 03:27:55 +01:00
sha256 = "1yhsyh940kb33y2n6xl7zhf0f6q0nrxbyg6c4g5n2imllpn54sgi";
2019-07-17 10:53:54 +01:00
};
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;
};
}