summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ti/tinycbor/package.nix
blob: 5982a0b1b7d8387afcec01ec8c2f90964757bde3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  cmake,
  lib,
  stdenv,
  fetchFromGitHub,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "tinycbor";
  version = "7.0";

  src = fetchFromGitHub {
    owner = "intel";
    repo = "tinycbor";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Fuw/hV3tVzoKf2Xrw64xuU+7xzSRPWL/ZdLjF0qICDY=";
  };

  nativeBuildInputs = [ cmake ];

  meta = {
    description = "Concise Binary Object Representation (CBOR) Library";
    mainProgram = "cbordump";
    homepage = "https://github.com/intel/tinycbor";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tbutter ];
  };
})