nixpkgs-suyu/pkgs/development/libraries/libdigidoc/default.nix

28 lines
840 B
Nix
Raw Normal View History

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