2021-09-04 20:05:03 +00:00
|
|
|
{ lib, stdenv, fetchurl, gettext, libgpg-error, libgcrypt, libksba, zlib }:
|
2017-08-24 12:08:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ntbtls";
|
2023-01-19 22:11:19 +00:00
|
|
|
version = "0.3.1";
|
2017-08-24 12:08:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/ntbtls/ntbtls-${version}.tar.bz2";
|
2023-01-19 22:11:19 +00:00
|
|
|
sha256 = "sha256-iSIYH+9SO3e3FiXlYuTWlTInjqu9GLx0V52+FBNXKbo=";
|
2017-08-24 12:08:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2021-09-04 20:05:03 +00:00
|
|
|
buildInputs = [ libgcrypt libgpg-error libksba zlib ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isDarwin gettext;
|
2017-08-24 12:08:15 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "bin/ntbtls-config" $dev
|
|
|
|
'';
|
|
|
|
|
2021-10-07 20:22:17 +00:00
|
|
|
meta = with lib; {
|
2017-08-24 12:08:15 +00:00
|
|
|
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 12:08:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ joachifm ];
|
|
|
|
};
|
|
|
|
}
|