Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 756 B view raw
1{ lib, stdenv, fetchurl, pkg-config, glib, nss }: 2 3stdenv.mkDerivation rec { 4 pname = "libcacard"; 5 version = "2.8.1"; 6 7 src = fetchurl { 8 url = "https://www.spice-space.org/download/libcacard/${pname}-${version}.tar.xz"; 9 sha256 = "sha256-+79N6Mt9tb3/XstnL/Db5pOfufNEuQDVG6YpUymjMuc="; 10 }; 11 12 postPatch = lib.optionalString stdenv.isDarwin '' 13 sed -i '/--version-script/d' Makefile.in 14 sed -i 's/^vflag = .*$/vflag = ""/' meson.build 15 ''; 16 17 nativeBuildInputs = [ pkg-config ]; 18 buildInputs = [ glib nss ]; 19 20 meta = with lib; { 21 description = "Smart card emulation library"; 22 homepage = "https://gitlab.freedesktop.org/spice/libcacard"; 23 license = licenses.lgpl21; 24 maintainers = [ ]; 25 platforms = platforms.unix; 26 }; 27}