about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libunibreak/default.nix
blob: 557ad37f23d27b5a15492bd3bad47d604c4081e8 (plain) (blame)
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
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:

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

  src = let
      rev_version = lib.replaceStrings ["."] ["_"] version;
  in fetchFromGitHub {
    owner = "adah1972";
    repo = pname;
    rev = "libunibreak_${rev_version}";
    sha256 = "sha256-8yheb+XSvc1AqITjSutF+/4OWb4+7hweedKzhKJcE1Y=";
  };

  nativeBuildInputs = [ autoreconfHook ];

  meta = with 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 ];
  };
}