3
0
Fork 0
forked from mirrors/nixpkgs

zlog: init at 1.2.12

[Bjørn: add name= to fetchzip, remove unneeded -r flag from sed.]
This commit is contained in:
Matthias Beyer 2015-07-12 12:26:31 +02:00 committed by Bjørn Forsman
parent d54659fe96
commit 20882964f5
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
version = "1.2.12";
name = "zlog-${version}";
src = fetchzip {
name = "${name}-src";
url = "https://github.com/HardySimpson/zlog/archive/${version}.tar.gz";
sha256 = "1ychld0dcfdak2wnmkj941i0xav6ynlb3n6hz1kz03yy74ll2fqi";
};
configurePhase = ''
sed -i 's;-Werror;;' src/makefile
'';
buildPhase = ''
mkdir -p $out
make PREFIX=$out
'';
installPhase = ''
make PREFIX=$out install
'';
meta = with stdenv.lib; {
description= "Reliable, high-performance, thread safe, flexible, clear-model, pure C logging library";
homepage = http://hardysimpson.github.com/zlog;
license = licenses.lgpl21;
platforms = platforms.linux; # cannot test on something else
maintainers = [ maintainers.matthiasbeyer ];
};
}

View file

@ -8396,6 +8396,8 @@ let
fetchurl = fetchurlBoot;
};
zlog = callPackage ../development/libraries/zlog { };
zlibStatic = lowPrio (appendToName "static" (callPackage ../development/libraries/zlib {
static = true;
}));