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
23
pkgs/development/libraries/pipewire/test-paths.nix
Normal file
23
pkgs/development/libraries/pipewire/test-paths.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, runCommand, package, paths-out, paths-lib }:
|
||||
|
||||
let
|
||||
check-path = output: path: ''
|
||||
if [[ ! -f "${output}/${path}" && ! -d "${output}/${path}" ]]; then
|
||||
printf "Missing: %s\n" "${output}/${path}" | tee -a $out
|
||||
error=error
|
||||
else
|
||||
printf "Found: %s\n" "${output}/${path}" | tee -a $out
|
||||
fi
|
||||
'';
|
||||
|
||||
check-output = output: lib.concatMapStringsSep "\n" (check-path output);
|
||||
in runCommand "pipewire-test-paths" { } ''
|
||||
touch $out
|
||||
|
||||
${check-output package.lib paths-lib}
|
||||
${check-output package paths-out}
|
||||
|
||||
if [[ -n "$error" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue