nixpkgs-suyu/pkgs/development/libraries/tinycbor/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

23 lines
568 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "tinycbor";
version = "0.6.0";
src = fetchFromGitHub {
owner = "intel";
repo = "tinycbor";
rev = "v${version}";
sha256 = "1ph1cmsh4hm6ikd3bs45mnv9zmniyrvp2rrg8qln204kr6fngfcd";
};
makeFlags = [ "prefix=$(out)" ];
meta = with lib; {
description = "Concise Binary Object Representation (CBOR) Library";
mainProgram = "cbordump";
homepage = "https://github.com/intel/tinycbor";
license = licenses.mit;
maintainers = with maintainers; [ oxzi ];
};
}