2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, perl
|
|
|
|
, texinfo
|
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, gnutls
|
|
|
|
, samba
|
|
|
|
, qemu
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "libtasn1";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "4.19.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "mirror://gnu/libtasn1/libtasn1-${version}.tar.gz";
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-FhPwrBz0hNbsDOO4wG1WJjzHJC8cI7MNgtI940WmP3o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ texinfo perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2024-09-26 11:04:55 +00:00
|
|
|
preCheck = if stdenv.hostPlatform.isDarwin then
|
2020-04-24 23:36:52 +00:00
|
|
|
"export DYLD_LIBRARY_PATH=`pwd`/lib/.libs"
|
|
|
|
else
|
|
|
|
null;
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit gnutls samba qemu;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/libtasn1/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "ASN.1 library";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Libtasn1 is the ASN.1 library used by GnuTLS, GNU Shishi and some
|
|
|
|
other packages. The goal of this implementation is to be highly
|
|
|
|
portable, and only require an ANSI C89 platform.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|