1 { lib, stdenv, fetchFromGitHub, cmake, cmocka }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "01dv4vxcmbvpphqy16vqiwh25wx11x630js5wfnx7cryarsh9ld7";
14 nativeBuildInputs = [ cmake ];
15 checkInputs = [ cmocka ];
17 doCheck = false; # needs "-DWITH_TESTS=ON", but fails w/compilation error
19 cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_SHARED_LIBS=on" ];
22 description = "CBOR protocol implementation for C and others";
23 homepage = "https://github.com/PJK/libcbor";
24 license = licenses.mit;
25 maintainers = with maintainers; [ dtzWill ];