about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gumbo/default.nix
blob: b8cfef1f3247ec61a83fac67c6c21f1d1f993eda (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
26
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }:

stdenv.mkDerivation rec {
  pname = "gumbo";
  version = "0.10.1";

  src = fetchFromGitHub {
    owner = "google";
    repo = "gumbo-parser";
    rev = "v${version}";
    sha256 = "0xslckwdh2i0g2qjsb6rnm8mjmbagvziz0hjlf7d1lbljfms1iw1";
  };

  strictDeps = true;
  nativeBuildInputs = [ autoconf automake libtool ];

  preConfigure = "./autogen.sh";

  meta = with lib; {
    description = "C99 HTML parsing algorithm";
    homepage = "https://github.com/google/gumbo-parser";
    maintainers = [ maintainers.nico202 ];
    platforms = with platforms; linux ++ darwin;
    license = licenses.asl20;
  };
}