1 { lib, stdenv, fetchurl, pkg-config, glib, nss }:
3 stdenv.mkDerivation rec {
8 url = "https://www.spice-space.org/download/libcacard/${pname}-${version}.tar.xz";
9 sha256 = "sha256-+79N6Mt9tb3/XstnL/Db5pOfufNEuQDVG6YpUymjMuc=";
12 postPatch = lib.optionalString stdenv.isDarwin ''
13 sed -i '/--version-script/d' Makefile.in
14 sed -i 's/^vflag = .*$/vflag = ""/' meson.build
17 nativeBuildInputs = [ pkg-config ];
18 buildInputs = [ glib nss ];
21 description = "Smart card emulation library";
22 homepage = "https://gitlab.freedesktop.org/spice/libcacard";
23 license = licenses.lgpl21;
24 maintainers = with maintainers; [ yana ];
25 platforms = platforms.unix;