Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 945 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoconf, 6 automake, 7 gettext, 8 libiconv, 9 libtool, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "tre"; 14 version = "0.9.0"; 15 16 src = fetchFromGitHub { 17 owner = "laurikari"; 18 repo = "tre"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-5O8yqzv+SR8x0X7GtC2Pjo94gp0799M2Va8wJ4EKyf8="; 21 }; 22 23 outputs = [ 24 "out" 25 "dev" 26 ]; 27 28 nativeBuildInputs = [ 29 autoconf 30 automake 31 gettext # autopoint 32 libtool 33 ]; 34 35 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ 36 libiconv 37 ]; 38 39 preConfigure = '' 40 ./utils/autogen.sh 41 ''; 42 43 meta = { 44 description = "Lightweight and robust POSIX compliant regexp matching library"; 45 homepage = "https://laurikari.net/tre/"; 46 changelog = "https://github.com/laurikari/tre/releases/tag/v${finalAttrs.version}"; 47 license = lib.licenses.bsd2; 48 mainProgram = "agrep"; 49 platforms = lib.platforms.unix; 50 }; 51})