2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, gettext, libgpgerror, libgcrypt, libksba, zlib }:
|
2017-08-24 13:08:15 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
with lib;
|
2017-08-24 13:08:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ntbtls";
|
2021-01-30 19:25:36 +00:00
|
|
|
version = "0.2.0";
|
2017-08-24 13:08:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/ntbtls/ntbtls-${version}.tar.bz2";
|
2021-01-30 19:25:36 +00:00
|
|
|
sha256 = "sha256-ZJ/nSjEdE+Q7FrJuuqkWZd22MpJbc5AlkurD7TBRnhc=";
|
2017-08-24 13:08:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2018-03-22 22:16:19 +00:00
|
|
|
buildInputs = [ libgcrypt libgpgerror libksba zlib ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isDarwin gettext;
|
2017-08-24 13:08:15 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "bin/ntbtls-config" $dev
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tiny TLS 1.2 only implementation";
|
2018-03-11 00:33:41 +00:00
|
|
|
homepage = "https://www.gnupg.org/software/ntbtls/";
|
2017-08-24 13:08:15 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ joachifm ];
|
|
|
|
};
|
|
|
|
}
|