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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, jdk8, ant, makeWrapper, jre8 }:
2019-07-17 09:53:54 +00:00
2020-09-19 15:40:08 +00:00
let jdk = jdk8; jre = jre8; in
2019-07-17 09:53:54 +00:00
stdenv.mkDerivation rec {
pname = "ili2c";
2021-02-04 15:01:54 +00:00
version = "5.1.1";
2019-07-17 09:53:54 +00:00
nativeBuildInputs = [ ant jdk makeWrapper ];
src = fetchFromGitHub {
owner = "claeis";
repo = pname;
rev = "${pname}-${version}";
2021-02-04 15:01:54 +00:00
sha256 = "sha256-FHhx+f253+UdbFjd2fOlUY1tpQ6pA2aVu9CBSwUVoKQ=";
2019-07-17 09:53:54 +00: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 lib; {
2019-07-17 09:53:54 +00:00
description = "The INTERLIS Compiler";
longDescription = ''
Checks the syntactical correctness of an INTERLIS data model.
'';
homepage = "https://www.interlis.ch/downloads/ili2c";
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode # source bundles dependencies as jars
];
2019-07-17 09:53:54 +00:00
license = licenses.lgpl21Plus;
maintainers = [ maintainers.das-g ];
platforms = platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "ili2c";
2019-07-17 09:53:54 +00:00
};
}