mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
liblangtag: init at 0.6.1
This commit is contained in:
parent
8b62a1b4b1
commit
28201b8009
52
pkgs/development/libraries/liblangtag/default.nix
Normal file
52
pkgs/development/libraries/liblangtag/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{stdenv, fetchurl, fetchFromBitbucket, autoreconfHook, gtkdoc, gettext
|
||||
, pkgconfig, glib, libxml2, gobjectIntrospection, gnome-common, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "liblangtag";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromBitbucket {
|
||||
owner = "tagoh";
|
||||
repo = "${pname}";
|
||||
rev = "${version}";
|
||||
sha256 = "19dk2qsg7f3ig9xz8d73jvikmf5kvrwi008wrz2psxinbdml442g";
|
||||
};
|
||||
|
||||
core_zip = fetchurl {
|
||||
# please update if an update is available
|
||||
url = "http://www.unicode.org/Public/cldr/33/core.zip";
|
||||
sha256 = "1faq1p5dmxpkczz6cjfsry7piksgym19cq2kf4jj2v885h490d7s";
|
||||
};
|
||||
|
||||
language_subtag_registry = fetchurl {
|
||||
url = "http://www.iana.org/assignments/language-subtag-registry";
|
||||
sha256 = "1qfkvllyqcy40vmnvjn5w9fxw7g6ww46cb306vkgcfghnjjfhv3b";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
gtkdocize
|
||||
cp "${core_zip}" data/core.zip
|
||||
touch data/stamp-core-zip
|
||||
cp "${language_subtag_registry}" data/language-subtag-registry
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
''--with-locale-alias=${stdenv.cc.libc}/share/locale/locale.alias''
|
||||
];
|
||||
|
||||
buildInputs = [ gettext glib libxml2 gobjectIntrospection gnome-common
|
||||
unzip ];
|
||||
nativeBuildInputs = [ autoreconfHook gtkdoc gettext pkgconfig ];
|
||||
|
||||
meta = {
|
||||
inherit version;
|
||||
description = "An interface library to access tags for identifying languages";
|
||||
license = stdenv.lib.licenses.mpl20;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
# There are links to a homepage that are broken by a BitBucket change
|
||||
homepage = "https://bitbucket.org/tagoh/liblangtag/overview";
|
||||
};
|
||||
}
|
@ -3466,6 +3466,11 @@ with pkgs;
|
||||
|
||||
libite = callPackage ../development/libraries/libite { };
|
||||
|
||||
liblangtag = callPackage ../development/libraries/liblangtag {
|
||||
inherit (gnome2) gtkdoc;
|
||||
inherit (gnome3) gnome-common;
|
||||
};
|
||||
|
||||
liblouis = callPackage ../development/libraries/liblouis { };
|
||||
|
||||
liboauth = callPackage ../development/libraries/liboauth { };
|
||||
|
Loading…
Reference in New Issue
Block a user