git.iko.soy/typeable/nixpkgs
on master help sign in
zlog: init at 1.2.12

[Bjørn: add name= to fetchzip, remove unneeded -r flag from sed.]

commit20882964f518acb2aba364a25d03c96fd149821a authorMatthias Beyer <mail@beyermatthias.de> dateSun 12 Jul 2015, 12:26 (11 years ago) parentd54659f
2 files changed+36
pkgs/development/libraries/zlog/default.nix+34 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/zlog/default.nixnew file+34
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -8396,6 +8396,8 @@ let
83968396 fetchurl = fetchurlBoot;
83978397 };
83988398
8399+ zlog = callPackage ../development/libraries/zlog { };
8400+
83998401 zlibStatic = lowPrio (appendToName "static" (callPackage ../development/libraries/zlib {
84008402 static = true;
84018403 }));