nixpkgs/pkgs/development/libraries/libdigidocpp/default.nix
Florian Klink 270d040cdc libdigidocpp: 3.14.8 -> 3.14.10
This includes 42a8cfd834c10bdd206fe784a13217df222b1c8e, fixing crashes
with OpenSSL>1.1.1l. We previously fetchpatched the patch manually.
2022-07-21 20:08:24 +07:00

37 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, fetchpatch, cmake, minizip, pcsclite, opensc, openssl
, xercesc, xml-security-c, pkg-config, xsd, zlib, xalanc, xxd }:
stdenv.mkDerivation rec {
version = "3.14.10";
pname = "libdigidocpp";
src = fetchurl {
url = "https://github.com/open-eid/libdigidocpp/releases/download/v${version}/libdigidocpp-${version}.tar.gz";
sha256 = "sha256-n/+R4ho1Qcft3YSKE12oxZjbFHAsUDwoLFNuk5GXf5c=";
};
nativeBuildInputs = [ cmake pkg-config xxd ];
buildInputs = [
minizip pcsclite opensc openssl xercesc
xml-security-c xsd zlib xalanc
];
outputs = [ "out" "lib" "dev" "bin" ];
# libdigidocpp.so's `PKCS11Signer::PKCS11Signer()` dlopen()s "opensc-pkcs11.so"
# itself, so add OpenSC to its DT_RUNPATH after the fixupPhase shrinked it.
# https://github.com/open-eid/cmake/pull/35 might be an alternative.
postFixup = ''
patchelf --add-rpath ${opensc}/lib/pkcs11 $lib/lib/libdigidocpp.so
'';
meta = with lib; {
description = "Library for creating DigiDoc signature files";
homepage = "http://www.id.ee/";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = [ maintainers.jagajaga ];
};
}