tre: 0.8.0 -> 0.9.0 (#365785)

authored by Arne Keller and committed by GitHub a56b9952 1a241fd2

+38 -13
+38 -13
pkgs/by-name/tr/tre/package.nix
··· 1 { 2 lib, 3 stdenv, 4 - fetchurl, 5 - fetchpatch, 6 }: 7 8 - stdenv.mkDerivation rec { 9 pname = "tre"; 10 - version = "0.8.0"; 11 - src = fetchurl { 12 - url = "https://laurikari.net/tre/${pname}-${version}.tar.gz"; 13 - sha256 = "1pd7qsa7vc3ybdc6h2gr4pm9inypjysf92kab945gg4qa6jp11my"; 14 }; 15 16 - patches = [ 17 - (fetchpatch { 18 - url = "https://sources.debian.net/data/main/t/tre/0.8.0-6/debian/patches/03-cve-2016-8859"; 19 - sha256 = "0navhizym6qxd4gngrsslbij8x9r3s67p1jzzhvsnq6ky49j7w3p"; 20 - }) 21 ]; 22 23 meta = { 24 description = "Lightweight and robust POSIX compliant regexp matching library"; 25 homepage = "https://laurikari.net/tre/"; 26 license = lib.licenses.bsd2; 27 mainProgram = "agrep"; 28 platforms = lib.platforms.unix; 29 }; 30 - }
··· 1 { 2 lib, 3 stdenv, 4 + fetchFromGitHub, 5 + autoconf, 6 + automake, 7 + darwin, 8 + gettext, 9 + libiconv, 10 + libtool, 11 }: 12 13 + stdenv.mkDerivation (finalAttrs: { 14 pname = "tre"; 15 + version = "0.9.0"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "laurikari"; 19 + repo = "tre"; 20 + tag = "v${finalAttrs.version}"; 21 + hash = "sha256-5O8yqzv+SR8x0X7GtC2Pjo94gp0799M2Va8wJ4EKyf8="; 22 }; 23 24 + outputs = [ 25 + "out" 26 + "dev" 27 + ]; 28 + 29 + nativeBuildInputs = [ 30 + autoconf 31 + automake 32 + libtool 33 ]; 34 35 + buildInputs = 36 + [ 37 + gettext 38 + ] 39 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 40 + libiconv 41 + ]; 42 + 43 + preConfigure = '' 44 + ./utils/autogen.sh 45 + ''; 46 + 47 meta = { 48 description = "Lightweight and robust POSIX compliant regexp matching library"; 49 homepage = "https://laurikari.net/tre/"; 50 + changelog = "https://github.com/laurikari/tre/releases/tag/v${finalAttrs.version}"; 51 license = lib.licenses.bsd2; 52 mainProgram = "agrep"; 53 platforms = lib.platforms.unix; 54 }; 55 + })