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
24
pkgs/development/tools/analysis/sparse/tests.nix
Normal file
24
pkgs/development/tools/analysis/sparse/tests.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ runCommand, gcc, sparse, writeText }:
|
||||
let
|
||||
src = writeText "CODE.c" ''
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
'';
|
||||
in
|
||||
runCommand "${sparse.pname}-tests" { buildInputs = [ gcc sparse ]; meta.timeout = 3; }
|
||||
''
|
||||
set -eu
|
||||
${sparse}/bin/cgcc ${src} > output 2>&1 || ret=$?
|
||||
if [[ -z $(<output) ]]; then
|
||||
mv output $out
|
||||
else
|
||||
echo "Test build returned $ret"
|
||||
cat output
|
||||
exit 1
|
||||
fi
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue