···11+{
22+ lib,
33+ stdenv,
44+ fetchFromGitHub,
55+ vala,
66+ pkg-config,
77+ gobject-introspection,
88+ libxml2,
99+ libgee,
1010+}:
1111+1212+stdenv.mkDerivation (finalAttrs: {
1313+ pname = "libisocodes";
1414+ version = "1.2.5";
1515+1616+ src = fetchFromGitHub {
1717+ owner = "toddy15";
1818+ repo = "libisocodes";
1919+ rev = "v${finalAttrs.version}";
2020+ hash = "sha256-a2gVqiZXDiH1byEw/s3MqDQBBZ/bmnw8OyllGYfYykQ=";
2121+ };
2222+2323+ nativeBuildInputs = [
2424+ vala
2525+ pkg-config
2626+ gobject-introspection
2727+ ];
2828+2929+ buildInputs = [
3030+ libxml2
3131+ libgee
3232+ ];
3333+3434+ meta = {
3535+ description = "Easily access XML data of the iso-codes package";
3636+ longDescription = ''
3737+ This library can be used to easily access XML data of
3838+ the iso-codes package. It will provide an abstraction
3939+ layer to handle both the version 3 and the upcoming
4040+ version 4 of iso-codes. Moreover, all available
4141+ translations can be used as well.
4242+4343+ This library makes use of the GObject introspection
4444+ features, so that it is accessible from a variety of
4545+ programming languages, for example C, Vala, Ruby,
4646+ Python, Perl, Lua, JavaScript, PHP and many more.
4747+ '';
4848+ homepage = "https://github.com/toddy15/libisocodes";
4949+ license = lib.licenses.gpl3Plus;
5050+ maintainers = with lib.maintainers; [ aleksana ];
5151+ platforms = lib.platforms.unix;
5252+ };
5353+})