@@ -0,0 +1,22 @@
1+{ stdenv, fetchurl, pkgconfig, glib, nss }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libcacard-${version}";
5+ version = "2.6.1";
6+
7+ src = fetchurl {
8+ url = "https://www.spice-space.org/download/libcacard/${name}.tar.xz";
9+ sha256 = "1w6y0kiakhg7dgyf8yqpm4jj6jiv17zhy9lp3d7z32q1pniccxk2";
10+ };
11+
12+ nativeBuildInputs = [ pkgconfig ];
13+ buildInputs = [ glib nss ];
14+
15+ meta = with stdenv.lib; {
16+ description = "Smart card emulation library";
17+ homepage = https://gitlab.freedesktop.org/spice/libcacard;
18+ license = licenses.lgpl21;
19+ maintainers = with maintainers; [ yegortimoshenko ];
20+ platforms = platforms.unix;
21+ };
22+}