2021-10-08 15:17:17 +00:00
|
|
|
{ lib, stdenv, fetchurl, gettext, libgpg-error, libgcrypt, libksba, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ntbtls";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/ntbtls/ntbtls-${version}.tar.bz2";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-vfy5kCSs7JxsS5mK1juzkh30z+5KdyrWwMoyTbvysHw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
buildInputs = [ libgcrypt libgpg-error libksba zlib ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optional stdenv.hostPlatform.isDarwin gettext;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "bin/ntbtls-config" $dev
|
|
|
|
'';
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tiny TLS 1.2 only implementation";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ntbtls-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnupg.org/software/ntbtls/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ joachifm ];
|
|
|
|
};
|
|
|
|
}
|