@@ -0,0 +1,34 @@
1+{ stdenv, fetchzip }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.2.12";
5+ name = "zlog-${version}";
6+
7+ src = fetchzip {
8+ name = "${name}-src";
9+ url = "https://github.com/HardySimpson/zlog/archive/${version}.tar.gz";
10+ sha256 = "1ychld0dcfdak2wnmkj941i0xav6ynlb3n6hz1kz03yy74ll2fqi";
11+ };
12+
13+ configurePhase = ''
14+ sed -i 's;-Werror;;' src/makefile
15+ '';
16+
17+ buildPhase = ''
18+ mkdir -p $out
19+ make PREFIX=$out
20+ '';
21+
22+ installPhase = ''
23+ make PREFIX=$out install
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description= "Reliable, high-performance, thread safe, flexible, clear-model, pure C logging library";
28+ homepage = http://hardysimpson.github.com/zlog;
29+ license = licenses.lgpl21;
30+ platforms = platforms.linux; # cannot test on something else
31+ maintainers = [ maintainers.matthiasbeyer ];
32+ };
33+
34+}