Files
nixpkgs/pkgs/by-name/li/libtasn1/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
perl,
texinfo,
# for passthru.tests
gnutls,
samba,
qemu,
}:
stdenv.mkDerivation rec {
pname = "libtasn1";
version = "4.20.0";
src = fetchurl {
url = "mirror://gnu/libtasn1/libtasn1-${version}.tar.gz";
sha256 = "sha256-kuDjvUwC1K7udgNrLd2D8McyukzaXLcdWDJysjWHp2w=";
};
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "dev";
nativeBuildInputs = [
texinfo
perl
];
doCheck = true;
preCheck =
if stdenv.hostPlatform.isDarwin then "export DYLD_LIBRARY_PATH=`pwd`/lib/.libs" else null;
passthru.tests = {
inherit gnutls samba qemu;
};
meta = {
homepage = "https://www.gnu.org/software/libtasn1/";
description = "ASN.1 library";
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 = lib.licenses.lgpl2Plus;
platforms = lib.platforms.all;
changelog = "https://gitlab.com/gnutls/libtasn1/-/blob/v${version}/NEWS";
};
}