My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/libcbor/default.nix

27 lines
716 B

{ 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 ];
};
}