From 3b72e1f1081982ab5b7ee218c3c6f29da33a7825 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 11 Mar 2015 16:13:12 -0700 Subject: [PATCH] liblognorm: Add derivation --- .../libraries/liblognorm/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/libraries/liblognorm/default.nix diff --git a/pkgs/development/libraries/liblognorm/default.nix b/pkgs/development/libraries/liblognorm/default.nix new file mode 100644 index 000000000000..f9095be8425f --- /dev/null +++ b/pkgs/development/libraries/liblognorm/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, pkgconfig, libestr, json_c, pcre }: + +stdenv.mkDerivation rec { + name = "liblognorm-1.1.1"; + + src = fetchurl { + url = "http://www.liblognorm.com/files/download/${name}.tar.gz"; + sha256 = "1wi28n5ahajvl64wfn7jpvnskccd6837i0cyq8w8cvrm362b6pd7"; + }; + + buildInputs = [ pkgconfig libestr json_c pcre ]; + + configureFlags = [ "--enable-regexp" ]; + + meta = with stdenv.lib; { + homepage = http://www.liblognorm.com/; + description = "help to make sense out of syslog data, or, actually, any event data that is present in text form"; + license = licenses.lgpl21; + platforms = platforms.all; + maintainers = with maintainers; [ wkennington ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 65c70aa51077..1d96e47cc89e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6319,6 +6319,8 @@ let liblogging = callPackage ../development/libraries/liblogging { }; + liblognorm = callPackage ../development/libraries/liblognorm { }; + libltc = callPackage ../development/libraries/libltc { }; libmcrypt = callPackage ../development/libraries/libmcrypt {};