about summary refs log tree commit diff
path: root/pkgs/tools/networking/tlsdate/default.nix
blob: a7721b563b3f2260e1a1d415b41c70e2a94941b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchgit
, autoconf
, automake
, libevent
, libtool
, pkgconfig
, openssl
}:

stdenv.mkDerivation {
  name = "tlsdate-0.0.12";

  src = fetchgit {
    url = https://github.com/ioerror/tlsdate;
    rev = "fd04f48ed60eb773c8e34d27ef2ee12ee7559a41";
    sha256 = "0naxlsanpgixj509z4mbzl41r2nn5wi6q2lp10a7xgcmcb4cgnbf";
  };

  buildInputs = [
    autoconf
    automake
    libevent
    libtool
    pkgconfig
    openssl
  ];

  preConfigure = ''
    export COMPILE_DATE=0
    ./autogen.sh
  '';

  doCheck = true;

  meta = {
    description = "Secure parasitic rdate replacement";
    homepage = https://github.com/ioerror/tlsdate;
    maintainers = [ stdenv.lib.maintainers.tv ];
    platforms = stdenv.lib.platforms.allBut [ "darwin" ];
  };
}