2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, openssl, pcsclite, opensc, libxml2, Security }:
|
2016-04-26 15:56:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2020-02-07 12:39:59 +00:00
|
|
|
version = "3.10.5";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libdigidoc";
|
2018-06-21 09:22:22 +00:00
|
|
|
|
2016-04-26 15:56:49 +00:00
|
|
|
src = fetchurl {
|
2018-06-21 09:22:22 +00:00
|
|
|
url = "https://github.com/open-eid/libdigidoc/releases/download/v${version}/libdigidoc-${version}.tar.gz";
|
2020-02-07 12:39:59 +00:00
|
|
|
sha256 = "0nw36a4i6rcq7z6jqz5h2ln9hmmsfhw65jga3rymlswk2k7bndgn";
|
2016-04-26 15:56:49 +00:00
|
|
|
};
|
|
|
|
|
2018-06-21 09:22:22 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-07-04 21:20:00 +00:00
|
|
|
buildInputs = [ openssl pcsclite opensc libxml2 ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2020-07-04 21:20:00 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.isDarwin [ "-DFRAMEWORK=OFF" ];
|
2016-04-26 15:56:49 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-04-26 15:56:49 +00:00
|
|
|
description = "Library for creating DigiDoc signature files";
|
2020-07-04 21:20:00 +00:00
|
|
|
homepage = "https://github.com/open-eid/libdigidoc";
|
2016-04-26 15:56:49 +00:00
|
|
|
license = licenses.lgpl2;
|
2020-07-04 21:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2016-04-26 15:56:49 +00:00
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
}
|