at 23.05-pre 37 lines 1.1 kB view raw
1{ fetchurl, lib, stdenv 2, CoreServices 3}: 4 5stdenv.mkDerivation rec { 6 pname = "check"; 7 version = "0.15.2"; 8 9 src = fetchurl { 10 url = "https://github.com/libcheck/check/releases/download/${version}/check-${version}.tar.gz"; 11 sha256 = "02m25y9m46pb6n46s51av62kpd936lkfv3b13kfpckgvmh5lxpm8"; 12 }; 13 14 # Test can randomly fail: https://hydra.nixos.org/build/7243912 15 doCheck = false; 16 17 buildInputs = lib.optional stdenv.isDarwin CoreServices; 18 19 meta = with 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 mainProgram = "checkmk"; 35 platforms = platforms.all; 36 }; 37}