1 { lib, stdenv, fetchurl, fetchFromBitbucket, autoreconfHook, gtk-doc, gettext
2 , pkg-config, glib, libxml2, gobject-introspection, gnome-common, unzip
5 stdenv.mkDerivation rec {
9 src = fetchFromBitbucket {
13 sha256 = "10rycs8xrxzf9frzalv3qx8cs1jcildhrr4imzxdmr9f4l585z96";
17 # please update if an update is available
18 url = "http://www.unicode.org/Public/cldr/37/core.zip";
19 sha256 = "0myswkvvaxvrz9zwq4zh65sygfd9n72cd5rk4pwacqba4nxgb4xs";
22 language_subtag_registry = fetchurl {
23 url = "http://www.iana.org/assignments/language-subtag-registry";
24 sha256 = "0y9x5gra6jri4sk16f0dp69p06almnsl48rs85605f035kf539qm";
29 cp "${core_zip}" data/core.zip
30 touch data/stamp-core-zip
31 cp "${language_subtag_registry}" data/language-subtag-registry
35 "--with-locale-alias=${stdenv.cc.libc}/share/locale/locale.alias"
38 buildInputs = [ gettext glib libxml2 gobject-introspection gnome-common ];
39 nativeBuildInputs = [ autoreconfHook gtk-doc gettext pkg-config unzip ];
43 description = "An interface library to access tags for identifying languages";
44 license = lib.licenses.mpl20;
45 maintainers = [lib.maintainers.raskin];
46 platforms = lib.platforms.linux;
47 # There are links to a homepage that are broken by a BitBucket change
48 homepage = "https://bitbucket.org/tagoh/liblangtag/overview";