Merge pull request #260059 from trofi/libcbor-dev-output

libcbor: move headers out to "dev" output
This commit is contained in:
Mario Rodas 2023-10-25 21:09:19 -05:00 committed by GitHub
commit b01ee1b561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, cmocka
@ -22,6 +23,19 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-ZTa+wG1g9KsVoqJG/yqxo2fJ7OhPnaI9QcfOmpOT3pg=";
};
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 ];