nixpkgs/pkgs/development/libraries/ntbtls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
788 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, gettext, libgpg-error, libgcrypt, libksba, zlib }:
2017-08-24 12:08:15 +00:00
stdenv.mkDerivation rec {
pname = "ntbtls";
2024-01-30 07:47:24 +00:00
version = "0.3.2";
2017-08-24 12:08:15 +00:00
src = fetchurl {
url = "mirror://gnupg/ntbtls/ntbtls-${version}.tar.bz2";
2024-01-30 07:47:24 +00:00
sha256 = "sha256-vfy5kCSs7JxsS5mK1juzkh30z+5KdyrWwMoyTbvysHw=";
2017-08-24 12:08:15 +00:00
};
outputs = [ "dev" "out" ];
buildInputs = [ libgcrypt libgpg-error libksba zlib ]
++ 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; {
description = "Tiny TLS 1.2 only implementation";
mainProgram = "ntbtls-config";
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 ];
};
}