nixpkgs/pkgs/servers/certificate-transparency/default.nix
Philip Potter a11c1f8e39 certificate-transparency: 2015-11-27 -> 2016-01-14
Bump to latest master.  Among other things, this pulls in
google/certificate-transparency#1088 which fixes a problem with running
xjson-server in clustering mode.
2016-01-20 12:27:25 +00:00

58 lines
1.5 KiB
Nix

{ stdenv, pkgs, ...}:
stdenv.mkDerivation rec {
name = "certificate-transparency-${version}";
version = "2016-01-14";
rev = "250672b5aef3666edbdfc9a75b95a09e7a57ed08";
meta = with stdenv.lib; {
homepage = https://www.certificate-transparency.org/;
description = "Auditing for TLS certificates.";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ philandstuff ];
};
src = pkgs.fetchFromGitHub {
owner = "google";
repo = "certificate-transparency";
rev = rev;
sha256 = "1gn0bqzkf09jvc2aq3da8fwhl65y7q57msqsh6iczvd6fdmrpfdj";
};
# need to disable regex support in evhtp or building will fail
libevhtp_without_regex = stdenv.lib.overrideDerivation pkgs.libevhtp
(oldAttrs: {
cmakeFlags="-DEVHTP_DISABLE_REGEX:STRING=ON -DCMAKE_C_FLAGS:STRING=-fPIC";
});
buildInputs = with pkgs; [
autoconf automake clang_34 pkgconfig
glog gmock google-gflags gperftools gtest json_c leveldb
libevent libevhtp_without_regex openssl protobuf sqlite
];
patches = [
./protobuf-include-from-env.patch
];
doCheck = false;
preConfigure = ''
./autogen.sh
configureFlagsArray=(
CC=clang
CXX=clang++
GMOCK_DIR=${pkgs.gmock}
GTEST_DIR=${pkgs.gtest}
)
'';
# the default Makefile constructs BUILD_VERSION from `git describe`
# which isn't available in the nix build environment
makeFlags = "BUILD_VERSION=${version}-${rev}";
protocFlags = "-I ${pkgs.protobuf}/include";
}