summary refs log tree commit diff
path: root/pkgs/development/libraries/tre/default.nix
blob: 9ac026ee94b81213316c732b698058392c53e568 (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
{lib, stdenv, fetchurl, fetchpatch}:

stdenv.mkDerivation rec {
  pname = "tre";
  version = "0.8.0";
  src = fetchurl {
    url = "https://laurikari.net/tre/${pname}-${version}.tar.gz";
    sha256 = "1pd7qsa7vc3ybdc6h2gr4pm9inypjysf92kab945gg4qa6jp11my";
  };

  patches = [
    (fetchpatch {
      url = "https://sources.debian.net/data/main/t/tre/0.8.0-6/debian/patches/03-cve-2016-8859";
      sha256 = "0navhizym6qxd4gngrsslbij8x9r3s67p1jzzhvsnq6ky49j7w3p";
    })
  ];

  meta = {
    description = "Lightweight and robust POSIX compliant regexp matching library";
    homepage = "https://laurikari.net/tre/";
    platforms = lib.platforms.unix;
    license = lib.licenses.bsd2;
  };
}