1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/tools/misc/ili2c/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

40 lines
1,021 B
Nix

{ lib, stdenv, fetchFromGitHub, jdk8, ant, makeWrapper, jre8 }:
let jdk = jdk8; jre = jre8; in
stdenv.mkDerivation rec {
pname = "ili2c";
version = "5.0.8";
nativeBuildInputs = [ ant jdk makeWrapper ];
src = fetchFromGitHub {
owner = "claeis";
repo = pname;
rev = "${pname}-${version}";
sha256 = "1yhsyh940kb33y2n6xl7zhf0f6q0nrxbyg6c4g5n2imllpn54sgi";
};
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; {
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;
};
}