uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/libraries/cmocka/default.nix
Normal file
49
pkgs/development/libraries/cmocka/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ fetchurl, lib, stdenv, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cmocka";
|
||||
majorVersion = "1.1";
|
||||
version = "${majorVersion}.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cmocka.org/files/${majorVersion}/cmocka-${version}.tar.xz";
|
||||
sha256 = "1dm8pdvkyfa8dsbz9bpq7wwgixjij4sii9bbn5sgvqjm5ljdik7h";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight library to simplify and generalize unit tests for C";
|
||||
|
||||
longDescription =
|
||||
''There are a variety of C unit testing frameworks available however
|
||||
many of them are fairly complex and require the latest compiler
|
||||
technology. Some development requires the use of old compilers which
|
||||
makes it difficult to use some unit testing frameworks. In addition
|
||||
many unit testing frameworks assume the code being tested is an
|
||||
application or module that is targeted to the same platform that will
|
||||
ultimately execute the test. Because of this assumption many
|
||||
frameworks require the inclusion of standard C library headers in the
|
||||
code module being tested which may collide with the custom or
|
||||
incomplete implementation of the C library utilized by the code under
|
||||
test.
|
||||
|
||||
Cmocka only requires a test application is linked with the standard C
|
||||
library which minimizes conflicts with standard C library headers.
|
||||
Also, CMocka tries to avoid the use of some of the newer features of
|
||||
C compilers.
|
||||
|
||||
This results in CMocka being a relatively small library that can be
|
||||
used to test a variety of exotic code. If a developer wishes to
|
||||
simply test an application with the latest compiler then other unit
|
||||
testing frameworks may be preferable.
|
||||
|
||||
This is the successor of Google's Cmockery.'';
|
||||
|
||||
homepage = "https://cmocka.org/";
|
||||
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ kragniz rasendubi ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue