2023-01-11 07:51:40 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromSourcehut }:
|
|
|
|
|
|
|
|
buildNimPackage rec {
|
|
|
|
pname = "cbor";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "20230619";
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~ehmry";
|
|
|
|
repo = "nim_${pname}";
|
|
|
|
rev = version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-F6T/5bUwrJyhRarTWO9cjbf7UfEOXPNWu6mfVKNZsQA=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
meta = with lib;
|
|
|
|
src.meta // {
|
|
|
|
description =
|
|
|
|
"Concise Binary Object Representation decoder and encoder (RFC8949)";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = [ maintainers.ehmry ];
|
|
|
|
mainProgram = "cbordiag";
|
|
|
|
};
|
|
|
|
}
|