1{stdenv, fetchurl, fetchpatch}:
2
3stdenv.mkDerivation rec {
4 name = "tre-0.8.0";
5 src = fetchurl {
6 url = "https://laurikari.net/tre/${name}.tar.gz";
7 sha256 = "1pd7qsa7vc3ybdc6h2gr4pm9inypjysf92kab945gg4qa6jp11my";
8 };
9
10 patches = [
11 (fetchpatch {
12 url = https://sources.debian.net/data/main/t/tre/0.8.0-6/debian/patches/03-cve-2016-8859;
13 sha256 = "0navhizym6qxd4gngrsslbij8x9r3s67p1jzzhvsnq6ky49j7w3p";
14 })
15 ];
16
17 meta = {
18 description = "Lightweight and robust POSIX compliant regexp matching library";
19 homepage = "https://laurikari.net/tre/";
20 platforms = stdenv.lib.platforms.unix;
21 license = stdenv.lib.licenses.bsd2;
22 };
23}