libcbor: 0.10.2 -> 0.11.0

Changes: https://github.com/PJK/libcbor/releases/tag/v0.11.0
This commit is contained in:
Sergei Trofimovich 2024-02-18 09:25:20 +00:00
parent 35c5863c29
commit 47b9e8c2e8

View file

@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, cmocka
@ -14,28 +13,17 @@
stdenv.mkDerivation (finalAttrs: {
pname = "libcbor";
version = "0.10.2";
version = "0.11.0";
src = fetchFromGitHub {
owner = "PJK";
repo = "libcbor";
rev = "v${finalAttrs.version}";
hash = "sha256-eE11hYPsOKqfoX8fx/oYfOAichhUe4mMpNQNVZ6vAUI=";
hash = "sha256-N1xYkZw/6lX/nX/TE6/pVuEFgSyDiUJ50msK42NrKwI=";
};
outputs = [ "out" "dev" ];
patches = [
# Pull fix pending upstream inclusion to support
# `CMAKE_INSTALL_INCLUDEDIR`:
# https://github.com/PJK/libcbor/pull/297
(fetchpatch {
name = "includedir.patch";
url = "https://github.com/PJK/libcbor/commit/d00a63e6d6858a2ed6be9b431b42799ed2c99ad8.patch";
hash = "sha256-kBCSbAHOCGOs/4Yu6Vh0jcmzA/jYPkkPXPGPrptRfyk=";
})
];
strictDeps = true;
nativeBuildInputs = [ cmake ];