2016-03-20 03:46:20 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch
|
2014-12-20 13:03:15 +00:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libevent
|
|
|
|
, libtool
|
|
|
|
, pkgconfig
|
|
|
|
, openssl
|
|
|
|
}:
|
|
|
|
|
2016-03-20 03:46:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.0.13";
|
|
|
|
name = "tlsdate-${version}";
|
2014-12-20 13:03:15 +00:00
|
|
|
|
2016-03-20 03:46:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ioerror";
|
|
|
|
repo = "tlsdate";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "0w3v63qmbhpqlxjsvf4k3zp90k6mdzi8cdpgshan9iphy1f44xgl";
|
2014-12-20 13:03:15 +00:00
|
|
|
};
|
|
|
|
|
2016-03-20 03:46:20 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "tlsdate-no_sslv3.patch";
|
|
|
|
url = "https://github.com/ioerror/tlsdate/commit/f9d3cba7536d1679e98172ccbddad32bc9ae490c.patch";
|
|
|
|
sha256 = "0prv46vxvb4paxaswmc6ix0kd5sp0552i5msdldnhg9fysbac8s0";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2014-12-20 13:03:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libevent
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export COMPILE_DATE=0
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2016-03-20 03:46:20 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-12-20 13:03:15 +00:00
|
|
|
description = "Secure parasitic rdate replacement";
|
|
|
|
homepage = https://github.com/ioerror/tlsdate;
|
2016-03-20 03:46:20 +00:00
|
|
|
maintainers = with maintainers; [ tv fpletz ];
|
2016-08-12 05:10:17 +00:00
|
|
|
platforms = platforms.allBut platforms.darwin;
|
2014-12-20 13:03:15 +00:00
|
|
|
};
|
|
|
|
}
|