diff options
author | Will Dietz <w@wdtz.org> | 2019-03-29 09:58:12 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-05-09 12:26:29 -0500 |
commit | bbc0128e7d4a43b8b01977e5f02d36ee6b84e324 (patch) | |
tree | 8d98f3dccbeaa84f0035df80cfaa78fc7e6301e2 /pkgs/development/libraries/libcbor | |
parent | 8e1852ac7e7827f740555f669b1551f814f3b2cc (diff) |
libcbor: init at 2019-02-23
Diffstat (limited to 'pkgs/development/libraries/libcbor')
-rw-r--r-- | pkgs/development/libraries/libcbor/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libcbor/default.nix b/pkgs/development/libraries/libcbor/default.nix new file mode 100644 index 0000000000000..fe2f0eadeeb37 --- /dev/null +++ b/pkgs/development/libraries/libcbor/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, cmake, cmocka }: + +stdenv.mkDerivation rec { + pname = "libcbor"; + version = "2019-02-23"; + + src = fetchFromGitHub { + owner = "PJK"; + repo = pname; + rev = "87f977e732ca216682a8583a0e43803eb6b9c028"; + sha256 = "17p1ahdcpf5d4r472lhciscaqjq4pyxy9xjhqqx8mv646xmyripm"; + }; + + nativeBuildInputs = [ cmake ]; + checkInputs = [ cmocka ]; + + doCheck = false; # needs "-DWITH_TESTS=ON", but fails w/compilation error + + NIX_CFLAGS_COMPILE = [ "-fno-lto" ]; + + meta = with stdenv.lib; { + description = "CBOR protocol implementation for C and others"; + homepage = https://github.com/PJK/libcbor; + license = licenses.mit; + maintainers = with maintainers; [ dtzWill ]; + }; +} |