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

28 lines
840 B
Nix
Raw Normal View History

2020-07-04 22:20:00 +01:00
{ stdenv, fetchurl, cmake, openssl, pcsclite, opensc, libxml2, Security }:
2016-04-26 16:56:49 +01:00
stdenv.mkDerivation rec {
2020-02-07 12:39:59 +00:00
version = "3.10.5";
pname = "libdigidoc";
2018-06-21 10:22:22 +01:00
2016-04-26 16:56:49 +01:00
src = fetchurl {
2018-06-21 10:22:22 +01: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 16:56:49 +01:00
};
2018-06-21 10:22:22 +01:00
nativeBuildInputs = [ cmake ];
2020-07-04 22:20:00 +01:00
buildInputs = [ openssl pcsclite opensc libxml2 ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [ "-DFRAMEWORK=OFF" ];
2016-04-26 16:56:49 +01:00
meta = with stdenv.lib; {
description = "Library for creating DigiDoc signature files";
2020-07-04 22:20:00 +01:00
homepage = "https://github.com/open-eid/libdigidoc";
2016-04-26 16:56:49 +01:00
license = licenses.lgpl2;
2020-07-04 22:20:00 +01:00
platforms = platforms.unix;
2016-04-26 16:56:49 +01:00
maintainers = [ maintainers.jagajaga ];
};
}