aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/libunibreak/default.nix
blob: d30c84b52a2e014dd9d926f1c6679e9e3531a9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchFromGitHub, autoreconfHook }:

stdenv.mkDerivation rec {
  pname = "libunibreak";
  version = "4.3";

  src = let
      rev_version = stdenv.lib.replaceStrings ["."] ["_"] version;
  in fetchFromGitHub {
    owner = "adah1972";
    repo = pname;
    rev = "libunibreak_${rev_version}";
    sha256 = "19g3ixs1ycisfdnzd8v7j5r49h0x0hshchk9qwlz4i0mjv825plx";
  };

  nativeBuildInputs = [ autoreconfHook ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/adah1972/libunibreak";
    description = "Implementation of line breaking and word breaking algorithms as in the Unicode standard";
    license = licenses.zlib;
    platforms = platforms.unix;
    maintainers = [ maintainers.coroa ];
  };
}