nixpkgs/pkgs/development/libraries/libcbor/default.nix
Vladimír Čunát c778945806
Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2"
I'm sorry; I didn't notice it contained staging commits.

This reverts commit 17f5305b6c, reversing
changes made to a8a018ddc0.
2020-10-25 09:41:51 +01:00

30 lines
773 B
Nix

{ stdenv, fetchFromGitHub, cmake, cmocka }:
stdenv.mkDerivation rec {
pname = "libcbor";
version = "unstable-2019-07-25";
src = fetchFromGitHub {
owner = "PJK";
repo = pname;
rev = "82512d851205fbc7f65d96a0b4a8e1bad2e4f3c6";
sha256 = "01hy7n21gxz4gp3gdwm2ywz822p415bj2k9ccxgwz3plvncs4xa1";
};
nativeBuildInputs = [ cmake ];
checkInputs = [ cmocka ];
doCheck = false; # needs "-DWITH_TESTS=ON", but fails w/compilation error
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
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 ];
};
}