1 { lib, runCommand, package, paths-out, paths-lib }:
4 check-path = output: path: ''
5 if [[ ! -f "${output}/${path}" && ! -d "${output}/${path}" ]]; then
6 printf "Missing: %s\n" "${output}/${path}" | tee -a $out
9 printf "Found: %s\n" "${output}/${path}" | tee -a $out
13 check-output = output: lib.concatMapStringsSep "\n" (check-path output);
14 in runCommand "pipewire-test-paths" { } ''
17 ${check-output package.lib paths-lib}
18 ${check-output package paths-out}
20 if [[ -n "$error" ]]; then