* libcbor: 0.8.0 -> 0.9.0 (cherry picked from commit 9c06d262d2ac0225d0f2b2626fae064c340d375a) * libfido2: 1.9.0 -> 1.10.0 https://github.com/Yubico/libfido2/blob/1.10.0/NEWS Co-authored-by: R. Ryantm <ryantm-bot@ryantm.com>
28 lines
716 B
Nix
28 lines
716 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, cmocka }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcbor";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PJK";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Wp/48yQA17mf/dTgeMcMDvPpKOPkfLhQkCnzgGLpLtk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
checkInputs = [ cmocka ];
|
|
|
|
doCheck = false; # needs "-DWITH_TESTS=ON", but fails w/compilation error
|
|
|
|
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_SHARED_LIBS=on" ];
|
|
|
|
meta = with lib; {
|
|
description = "CBOR protocol implementation for C and others";
|
|
homepage = "https://github.com/PJK/libcbor";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|