mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
zlog: init at 1.2.12
[Bjørn: add name= to fetchzip, remove unneeded -r flag from sed.]
This commit is contained in:
parent
d54659fe96
commit
20882964f5
34
pkgs/development/libraries/zlog/default.nix
Normal file
34
pkgs/development/libraries/zlog/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -8396,6 +8396,8 @@ let
|
|||||||
fetchurl = fetchurlBoot;
|
fetchurl = fetchurlBoot;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zlog = callPackage ../development/libraries/zlog { };
|
||||||
|
|
||||||
zlibStatic = lowPrio (appendToName "static" (callPackage ../development/libraries/zlib {
|
zlibStatic = lowPrio (appendToName "static" (callPackage ../development/libraries/zlib {
|
||||||
static = true;
|
static = true;
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user