1{ fetchurl, stdenv
2, CoreServices
3}:
4
5stdenv.mkDerivation rec {
6 name = "check-${version}";
7 version = "0.12.0";
8
9 src = fetchurl {
10 url = "https://github.com/libcheck/check/releases/download/${version}/check-${version}.tar.gz";
11 sha256 = "0d22h8xshmbpl9hba9ch3xj8vb9ybm5akpsbbh7yj07fic4h2hj6";
12 };
13
14 # Test can randomly fail: http://hydra.nixos.org/build/7243912
15 doCheck = false;
16
17 buildInputs = stdenv.lib.optional stdenv.isDarwin CoreServices;
18
19 meta = with stdenv.lib; {
20 description = "Unit testing framework for C";
21
22 longDescription =
23 '' Check is a unit testing framework for C. It features a simple
24 interface for defining unit tests, putting little in the way of the
25 developer. Tests are run in a separate address space, so Check can
26 catch both assertion failures and code errors that cause
27 segmentation faults or other signals. The output from unit tests
28 can be used within source code editors and IDEs.
29 '';
30
31 homepage = https://libcheck.github.io/check/;
32
33 license = licenses.lgpl2Plus;
34 platforms = platforms.all;
35 maintainers = with maintainers; [ wkennington ];
36 };
37}