depot/third_party/nixpkgs/pkgs/development/libraries/libcacard/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

27 lines
769 B
Nix

{ lib, stdenv, fetchurl, pkg-config, glib, nss }:
stdenv.mkDerivation rec {
pname = "libcacard";
version = "2.8.1";
src = fetchurl {
url = "https://www.spice-space.org/download/libcacard/${pname}-${version}.tar.xz";
sha256 = "sha256-+79N6Mt9tb3/XstnL/Db5pOfufNEuQDVG6YpUymjMuc=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i '/--version-script/d' Makefile.in
sed -i 's/^vflag = .*$/vflag = ""/' meson.build
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib nss ];
meta = with lib; {
description = "Smart card emulation library";
homepage = "https://gitlab.freedesktop.org/spice/libcacard";
license = licenses.lgpl21;
maintainers = [ ];
platforms = platforms.unix;
};
}